Changeset: 519ffadf6861 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=519ffadf6861
Modified Files:
        sql/backends/monet5/sql_upgrades.c
Branch: statistics-analytics
Log Message:

Commit statement on the right place


diffs (19 lines):

diff --git a/sql/backends/monet5/sql_upgrades.c 
b/sql/backends/monet5/sql_upgrades.c
--- a/sql/backends/monet5/sql_upgrades.c
+++ b/sql/backends/monet5/sql_upgrades.c
@@ -2557,6 +2557,7 @@ sql_update_default(Client c, mvc *sql, c
                        
"('STATEMENT'),('TABLE'),('TEMP'),('TEMPORARY'),('TEXT'),('TIME'),('TIMESTAMP'),('TRACE'),('TYPE'),('UNIONJOIN'),"
                        "('WEEK'),('YEAR'),('ZONE');\n");
 
+       pos += snprintf(buf + pos, bufsize - pos, "commit;\n");
        pos += snprintf(buf + pos, bufsize - pos, "set schema \"%s\";\n", 
prev_schema);
        assert(pos < bufsize);
 
@@ -2724,7 +2725,6 @@ sql_update_analytics(Client c, mvc *sql,
                        "DROP AGGREGATE var_pop(time);\n"
                        "DROP AGGREGATE var_pop(timestamp);\n");
 
-       pos += snprintf(buf + pos, bufsize - pos, "commit;\n");
        pos += snprintf(buf + pos, bufsize - pos, "set schema \"%s\";\n", 
prev_schema);
        assert(pos < bufsize);
 
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to