Fixing issue introduced in merge, using new native SQL function.
This commit is contained in:
parent
737adfdea9
commit
0a4ee7e308
|
@ -247,7 +247,7 @@ class SqlTableQueryBuilder {
|
||||||
const tableName = schemaName
|
const tableName = schemaName
|
||||||
? `${schemaName}.${json.table.name}`
|
? `${schemaName}.${json.table.name}`
|
||||||
: `${json.table.name}`
|
: `${json.table.name}`
|
||||||
const sql = query.toSQL()
|
const sql = getNativeSql(query)
|
||||||
if (Array.isArray(sql)) {
|
if (Array.isArray(sql)) {
|
||||||
for (const query of sql) {
|
for (const query of sql) {
|
||||||
if (query.sql.startsWith("exec sp_rename")) {
|
if (query.sql.startsWith("exec sp_rename")) {
|
||||||
|
|
Loading…
Reference in New Issue