From 48d307ced6b43239cf73662c711dd459a3e02675 Mon Sep 17 00:00:00 2001 From: Devan Ferguson Date: Tue, 9 Aug 2022 16:37:01 -0400 Subject: [PATCH] Fix column casing --- src/dialect/mysql/mysql-introspector.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/dialect/mysql/mysql-introspector.ts b/src/dialect/mysql/mysql-introspector.ts index f53a471ee..cd9c7fb35 100644 --- a/src/dialect/mysql/mysql-introspector.ts +++ b/src/dialect/mysql/mysql-introspector.ts @@ -36,13 +36,13 @@ export class MysqlIntrospector implements DatabaseIntrospector { let query = this.#db .selectFrom('information_schema.columns') .select([ - 'column_name', - 'column_default', - 'table_name', - 'table_schema', - 'is_nullable', - 'data_type', - 'extra', + 'COLUMN_NAME', + 'COLUMN_DEFAULT', + 'TABLE_NAME', + 'TABLE_SCHEMA', + 'IS_NULLABLE', + 'DATA_TYPE', + 'EXTRA', ]) .where('table_schema', '=', sql`database()`) .orderBy('table_name')