Browse Source
Merge pull request #3738 from Budibase/fix/mysql-escaping
Escape mysql describe to handle non standard table names
gh-pages
Rory Powell
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
packages/server/src/integrations/mysql.ts
|
|
|
@ -143,7 +143,7 @@ module MySQLModule { |
|
|
|
const schema: TableSchema = {} |
|
|
|
const descResp = await internalQuery( |
|
|
|
this.client, |
|
|
|
{ sql: `DESCRIBE ${tableName};` }, |
|
|
|
{ sql: `DESCRIBE \`${tableName}\`;` }, |
|
|
|
false |
|
|
|
) |
|
|
|
for (let column of descResp) { |
|
|
|
|