@@ -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