1
0
Fork 0
mirror of synced 2024-07-05 22:40:39 +12:00

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

View file

@ -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) {