1
0
Fork 0
mirror of synced 2024-07-02 04:50:44 +12:00

Merge pull request #2551 from mslourens/fix_uppercase_database_name

fix fetching tables from database with uppercase name
This commit is contained in:
Martin McKeaveney 2021-09-15 09:53:40 +01:00 committed by GitHub
commit 2e192f8acd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 = []