Skip to content

Commit 8fcc81f

Browse files
committed
Fix for 11_multi_table_rounds.sql
1 parent 615eb31 commit 8fcc81f

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/postgresql/database_postgresql.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1071,8 +1071,8 @@ int database_create_update_trigger (cloudsync_context *data, const char *table_n
10711071
char sql[2048];
10721072
snprintf(sql, sizeof(sql),
10731073
"SELECT string_agg("
1074-
" '(''%s'', NEW.' || quote_ident(kcu.column_name) || ', OLD.' || "
1075-
"quote_ident(kcu.column_name) || ')', "
1074+
" '(''%s'', NEW.' || quote_ident(kcu.column_name) || '::text, OLD.' || "
1075+
"quote_ident(kcu.column_name) || '::text)', "
10761076
" ', ' ORDER BY kcu.ordinal_position"
10771077
") "
10781078
"FROM information_schema.table_constraints tc "
@@ -1093,8 +1093,8 @@ int database_create_update_trigger (cloudsync_context *data, const char *table_n
10931093

10941094
snprintf(sql, sizeof(sql),
10951095
"SELECT string_agg("
1096-
" '(''%s'', NEW.' || quote_ident(c.column_name) || ', OLD.' || "
1097-
"quote_ident(c.column_name) || ')', "
1096+
" '(''%s'', NEW.' || quote_ident(c.column_name) || '::text, OLD.' || "
1097+
"quote_ident(c.column_name) || '::text)', "
10981098
" ', ' ORDER BY c.ordinal_position"
10991099
") "
11001100
"FROM information_schema.columns c "

0 commit comments

Comments
 (0)