1
0
Fork 0
mirror of synced 2024-09-29 16:51:33 +13:00

Escape mysql describe to handle non standard table names

This commit is contained in:
Rory Powell 2021-12-09 11:40:59 +00:00
parent 92bab31ffc
commit 4a3f596415

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