Changeset: 5d7a64ff80e1 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/5d7a64ff80e1
Modified Files:
        sql/backends/monet5/sql_upgrades.c
Branch: Dec2025
Log Message:

Replace constant with calculated value.


diffs (12 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
@@ -220,7 +220,7 @@ check_sys_tables(Client c, mvc *m, sql_s
        }
        {
                res_table *output = NULL;
-               err = SQLstatementIntern(c, "select * from sys.args where id 
between 2000 and 2171;\n", "update", true, false, &output);
+               err = SQLstatementIntern(c, "select a.id from sys.args a where 
a.id between 2000 and (select max(c.id) from sys._columns c where c.id < 
3000);\n", "update", true, false, &output);
                if (err)
                        return err;
                BAT *b = BATdescriptor(output->cols[0].b);
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to