Merge pull request #3738 from Budibase/fix/mysql-escaping
Escape mysql describe to handle non standard table names
This commit is contained in:
commit
09d999b9bb
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue