Changeset: 8b09226f0f7b for MonetDB URL: https://dev.monetdb.org/hg/MonetDB/rev/8b09226f0f7b Modified Files: sql/backends/monet5/sql_upgrades.c Branch: extract_types Log Message:
Add upgrade code due to change in return type of some mtime functions. diffs (32 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 @@ -155,6 +155,7 @@ check_sys_tables(Client c, mvc *m, sql_s /* tests a few internal functions: the last one created, the * first one created, and one of the first ones created after * the geom module */ + { "quarter", "quarter", "date", F_FUNC, }, { "sys_update_tables", "update_tables", NULL, F_PROC, }, { "length", "nitems", "blob", F_FUNC, }, { "isnull", "isnil", "void", F_FUNC, }, @@ -192,6 +193,20 @@ check_sys_tables(Client c, mvc *m, sql_s } BBPunfix(b->batCacheid); } + if (i == 0) { + snprintf(buf, sizeof(buf), "select args.type from functions join sys.args on functions.id = args.func_id where functions.name = '%s' and inout = 0;\n", tests[i].name); + err = SQLstatementIntern(c, buf, "quarter", true, false, &output); + if (err) + return err; + if ((b = BATdescriptor(output->cols[0].b)) != NULL) { + if (BATcount(b) > 0) { + BATiter bi = bat_iterator(b); + needsystabfix = strcmp((str) BUNtvar(bi, 0), "int") == 0; + bat_iterator_end(&bi); + } + BBPunfix(b->batCacheid); + } + } res_table_destroy(output); if (needsystabfix) return sql_fix_system_tables(c, m); _______________________________________________ checkin-list mailing list -- checkin-list@monetdb.org To unsubscribe send an email to checkin-list-le...@monetdb.org