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
1 changed files with 1 additions and 1 deletions

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