Changeset: 4f0645e8bd14 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=4f0645e8bd14
Modified Files:
        sql/backends/monet5/sql_upgrades.c
Branch: Jun2020
Log Message:

Commit before attempting to set a table read only.


diffs (11 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
@@ -1444,6 +1444,7 @@ sql_update_apr2019(Client c, mvc *sql, c
        pos += snprintf(buf + pos, bufsize - pos,
                        "update sys._columns set type_digits = 1048576 where 
name = 'query' and table_id in (select id from sys._tables t where t.name = 
'tables' and t.schema_id in (select id from sys.schemas s where s.name = 
'sys'));\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