Changeset: 9f48dd095d7a for MonetDB URL: https://dev.monetdb.org/hg/MonetDB/rev/9f48dd095d7a Modified Files: sql/backends/monet5/sql_gencode.c sql/test/miscellaneous/Tests/All testing/CMakeLists.txt testing/Mtest.py.in Branch: Sep2022 Log Message:
Cleanup: don't treat names differently when asserts are enabled. Instead, log the mapping from SQL name to MAL name. diffs (57 lines): diff --git a/sql/backends/monet5/sql_gencode.c b/sql/backends/monet5/sql_gencode.c --- a/sql/backends/monet5/sql_gencode.c +++ b/sql/backends/monet5/sql_gencode.c @@ -1212,16 +1212,8 @@ backend_create_sql_func(backend *be, sql if (!r) return -1; -#ifndef NDEBUG - /* for debug builds we keep the SQL function name in the MAL function name to make it easy to debug */ - if (strlen(f->base.name) + 21 >= IDLENGTH) { /* 20 bits for u64 number + '%' */ - (void) sql_error(m, 10, SQLSTATE(42000) "MAL function name '%s' too large for the backend", f->base.name); - return -1; - } - (void) snprintf(befname, IDLENGTH, "%%" LLFMT "%s", store_function_counter(m->store), f->base.name); -#else (void) snprintf(befname, IDLENGTH, "f_" LLFMT, store_function_counter(m->store)); -#endif + TRC_INFO(SQL_PARSER, "Mapping SQL name '%s' to MAL name '%s'\n", f->base.name, befname); symbackup = c->curprg; memcpy(&bebackup, be, sizeof(backend)); /* backup current backend */ backend_reset(be); diff --git a/sql/test/miscellaneous/Tests/All b/sql/test/miscellaneous/Tests/All --- a/sql/test/miscellaneous/Tests/All +++ b/sql/test/miscellaneous/Tests/All @@ -22,7 +22,7 @@ unique_keys vessels prepare HAVE_HGE?rel_push_count_down -NOT_ASSERT?sqlfuncnames +sqlfuncnames sequences analyze_test blobs diff --git a/testing/CMakeLists.txt b/testing/CMakeLists.txt --- a/testing/CMakeLists.txt +++ b/testing/CMakeLists.txt @@ -91,9 +91,6 @@ endif(HAVE_GETENTROPY) if (NOT WIN32) set(NOT_WIN32_FALSE "#") endif() -if(NOT ASSERT) - set(NOT_ASSERT_FALSE "#") -endif() configure_file(Mtest.py.in ${CMAKE_CURRENT_BINARY_DIR}/Mtest.py diff --git a/testing/Mtest.py.in b/testing/Mtest.py.in --- a/testing/Mtest.py.in +++ b/testing/Mtest.py.in @@ -385,7 +385,6 @@ CONDITIONALS = { 'HAVE_GETENTROPY' : "@HAVE_GETENTROPY_FALSE@", 'NATIVE_WIN32' : "@NATIVE_WIN32_FALSE@", 'NOT_WIN32' : "@NOT_WIN32_FALSE@", - 'NOT_ASSERT' : "@NOT_ASSERT_FALSE@", # unknown at compile time; # hence, we set them only at runtime in main() below 'KNOWNFAIL' : False, # skip on release branch when not in testweb _______________________________________________ checkin-list mailing list -- checkin-list@monetdb.org To unsubscribe send an email to checkin-list-le...@monetdb.org