Changeset: 346857c36df0 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/346857c36df0
Added Files:
sql/test/BugTracker-2026/Tests/8103-set-sys.pipeline-not-reflected-by-sys.var.test
Modified Files:
sql/backends/monet5/sql.c
Branch: default
Log Message:
also set the value of sys.pipeline in sys.var()
diffs (44 lines):
diff --git a/sql/backends/monet5/sql.c b/sql/backends/monet5/sql.c
--- a/sql/backends/monet5/sql.c
+++ b/sql/backends/monet5/sql.c
@@ -844,6 +844,10 @@ setVariable(Client cntxt, MalBlkPtr mb,
if (is_bit_nil(val))
throw(SQL, "sql.setVariable", SQLSTATE(42000)
"Variable '%s.%s' cannot be NULL", sname, varname);
cntxt->qryctx.pipeline_mode = (bool) val;
+
+ ValPtr ptr = &stk->stk[getArg(pci, 4)];
+ if (!sqlvar_set(m->session->sa, var, ptr))
+ throw(SQL, "sql.setVariable", SQLSTATE(HY013)
MAL_MALLOC_FAIL);
} else {
ValPtr ptr = &stk->stk[getArg(pci, 4)];
diff --git
a/sql/test/BugTracker-2026/Tests/8103-set-sys.pipeline-not-reflected-by-sys.var.test
b/sql/test/BugTracker-2026/Tests/8103-set-sys.pipeline-not-reflected-by-sys.var.test
new file mode 100644
--- /dev/null
+++
b/sql/test/BugTracker-2026/Tests/8103-set-sys.pipeline-not-reflected-by-sys.var.test
@@ -0,0 +1,25 @@
+statement ok
+SET sys.pipeline = false;
+
+query TTTI nosort
+select * from sys.var() where schema='sys' and name = 'pipeline';
+----
+sys pipeline boolean 0
+
+statement ok
+SET sys.pipeline = true;
+
+query TTTI nosort
+select * from sys.var() where schema='sys' and name = 'pipeline';
+----
+sys pipeline boolean 1
+
+skipif pipeline
+statement ok
+SET sys.pipeline = false;
+
+skipif pipeline
+query TTTI nosort
+select * from sys.var() where schema='sys' and name = 'pipeline';
+----
+sys pipeline boolean 0
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]