Merge pull request #3738 from Budibase/fix/mysql-escaping

Escape mysql describe to handle non standard table names
This commit is contained in:
Rory Powell 2021-12-09 14:23:58 +00:00 committed by GitHub
commit 09d999b9bb
1 changed files with 1 additions and 1 deletions

View File

@ -143,7 +143,7 @@ module MySQLModule {
const schema: TableSchema = {} const schema: TableSchema = {}
const descResp = await internalQuery( const descResp = await internalQuery(
this.client, this.client,
{ sql: `DESCRIBE ${tableName};` }, { sql: `DESCRIBE \`${tableName}\`;` },
false false
) )
for (let column of descResp) { for (let column of descResp) {