Browse Source

Merge pull request #2551 from mslourens/fix_uppercase_database_name

fix fetching tables from database with uppercase name
pull/2614/head
Martin McKeaveney 5 years ago
committed by GitHub
parent
commit
2e192f8acd
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      packages/server/src/integrations/mysql.ts

2
packages/server/src/integrations/mysql.ts

@ -152,7 +152,7 @@ module MySQLModule {
false
)
const tableNames = tablesResp.map(
(obj: any) => obj[`Tables_in_${database}`]
(obj: any) => obj[`Tables_in_${database.toLowerCase()}`]
)
for (let tableName of tableNames) {
const primaryKeys = []

Loading…
Cancel
Save