From 0a4ee7e3083c3a92e2c3e35bf6cf57f65c2c9b76 Mon Sep 17 00:00:00 2001 From: mike12345567 Date: Mon, 8 Apr 2024 18:29:06 +0100 Subject: [PATCH] Fixing issue introduced in merge, using new native SQL function. --- packages/server/src/integrations/base/sqlTable.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/server/src/integrations/base/sqlTable.ts b/packages/server/src/integrations/base/sqlTable.ts index 4c8181c4b5..4ff336421f 100644 --- a/packages/server/src/integrations/base/sqlTable.ts +++ b/packages/server/src/integrations/base/sqlTable.ts @@ -247,7 +247,7 @@ class SqlTableQueryBuilder { const tableName = schemaName ? `${schemaName}.${json.table.name}` : `${json.table.name}` - const sql = query.toSQL() + const sql = getNativeSql(query) if (Array.isArray(sql)) { for (const query of sql) { if (query.sql.startsWith("exec sp_rename")) {