From c99f68030d58ac8647bd03c866f9cddd2e286509 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Toma=C5=BE=20Jerman?= Date: Wed, 21 Jun 2023 09:52:32 +0200 Subject: [PATCH] Switch mysql information schema to column type Column type provides more information about the storage, such as intager signature and decimal precision. --- .../store/adapters/rdbms/drivers/mysql/information_schema.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/store/adapters/rdbms/drivers/mysql/information_schema.go b/server/store/adapters/rdbms/drivers/mysql/information_schema.go index a4aeefcec..5b2e21dfa 100644 --- a/server/store/adapters/rdbms/drivers/mysql/information_schema.go +++ b/server/store/adapters/rdbms/drivers/mysql/information_schema.go @@ -48,7 +48,7 @@ func (i *informationSchema) columnSelect() *goqu.SelectDataset { "TABLE_NAME", "COLUMN_NAME", "IS_NULLABLE", - "DATA_TYPE", + "COLUMN_TYPE", ). From("information_schema.columns"). Order( @@ -68,7 +68,7 @@ func (i *informationSchema) scanColumns(ctx context.Context, sd *goqu.SelectData Table string `db:"TABLE_NAME"` Column string `db:"COLUMN_NAME"` IsNullable string `db:"IS_NULLABLE"` - Type string `db:"DATA_TYPE"` + Type string `db:"COLUMN_TYPE"` }, 0) )