Changeset: 04b05307b761 for MonetDB URL: https://dev.monetdb.org/hg/MonetDB/rev/04b05307b761 Branch: default Log Message:
Merge with Dec2023 branch. diffs (89 lines): diff --git a/clients/odbc/driver/ODBCQueries.h b/clients/odbc/driver/ODBCQueries.h --- a/clients/odbc/driver/ODBCQueries.h +++ b/clients/odbc/driver/ODBCQueries.h @@ -302,7 +302,7 @@ #define CHAR_OCTET_LENGTH(t) \ "cast(case when " #t ".type in ('varchar','clob','char','json','url','xml') " \ - "then 4 * " #t ".type_digits " \ + "then 4 * cast(" #t ".type_digits as bigint) " \ "when " #t ".type = 'blob' then " #t ".type_digits " \ - "else cast(null as integer) " \ + "else null " \ "end as integer) as \"CHAR_OCTET_LENGTH\"" diff --git a/clients/odbc/driver/SQLTables.c b/clients/odbc/driver/SQLTables.c --- a/clients/odbc/driver/SQLTables.c +++ b/clients/odbc/driver/SQLTables.c @@ -222,8 +222,8 @@ MNDBTables(ODBCStmt *stmt, } buf[j] = 0; /* Some ODBC applications use different table type names. - * Replace those names to valid MonetDB table type names - * as defined in sys.tables_types */ + * Replace some SQL synonyms to valid MonetDB + * table type names as defined in sys.table_types */ if (strcmp("BASE TABLE", buf) == 0) { strcpy(buf, "TABLE"); } else diff --git a/monetdb5/modules/atoms/Tests/startswith.test b/monetdb5/modules/atoms/Tests/startswith.test --- a/monetdb5/modules/atoms/Tests/startswith.test +++ b/monetdb5/modules/atoms/Tests/startswith.test @@ -90,4 +90,4 @@ drop table bar query T select ['Camón Romasan'] startsWith ['camu', true]; ---- -false +False diff --git a/sql/test/sys-schema/Tests/All b/sql/test/sys-schema/Tests/All --- a/sql/test/sys-schema/Tests/All +++ b/sql/test/sys-schema/Tests/All @@ -20,5 +20,3 @@ webExamplesStringFunctions webExamplesUrlFunctions utilities - -HAVE_JDBCCLIENT_JAR?ValidateSystemCatalogTables diff --git a/sql/test/sys-schema/Tests/ValidateSystemCatalogTables.SQL.py b/sql/test/sys-schema/Tests/ValidateSystemCatalogTables.SQL.py deleted file mode 100755 --- a/sql/test/sys-schema/Tests/ValidateSystemCatalogTables.SQL.py +++ /dev/null @@ -1,27 +0,0 @@ -import os, sys -from subprocess import run, PIPE, CalledProcessError - -HOST=os.getenv('HOST') -MAPIPORT=os.getenv('MAPIPORT') -TSTDB=os.getenv('TSTDB') -TSTSRCBASE=os.getenv('TSTSRCBASE') -TSTDIR=os.getenv('TSTDIR') -CLIENT='org.monetdb.client.JdbcClient' -USER='monetdb' -PASSWORD='monetdb' - - -if __name__ == '__main__': - with open(os.path.join('.monetdb'), 'w') as f: - f.write('\n'.join(['user=monetdb', 'password=monetdb'])) - cmd = ['java', CLIENT, '-h', HOST, '-p', MAPIPORT, '-d', TSTDB, '-f', os.path.join(TSTSRCBASE, TSTDIR, 'Tests', 'ValidateSystemCatalogTables.sql')] - try: - p = run(cmd, stdout=PIPE, stderr=PIPE, check=True, encoding='utf-8') - pout = str(p.stdout) - if pout != "": - print(pout) - perr = str(p.stderr) - if perr != "": - print(perr) - except CalledProcessError as e: - raise SystemExit(e.stderr) diff --git a/sql/test/sys-schema/Tests/ValidateSystemCatalogTables.sql b/sql/test/sys-schema/Tests/ValidateSystemCatalogTables.sql deleted file mode 100644 --- a/sql/test/sys-schema/Tests/ValidateSystemCatalogTables.sql +++ /dev/null @@ -1,7 +0,0 @@ -\vsci_noheader -\vsni_noheader -\vsgi_noheader -\vsi_noheader sys -\vsi_noheader tmp -\vdbi_noheader - _______________________________________________ checkin-list mailing list -- checkin-list@monetdb.org To unsubscribe send an email to checkin-list-le...@monetdb.org