Escape mysql describe to handle non standard table names
This commit is contained in:
parent
92bab31ffc
commit
4a3f596415
|
@ -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