Changeset: e1abdb337aac for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/e1abdb337aac
Modified Files:
        clients/odbc/tests/ODBCtester.c
Branch: Jun2023
Log Message:

Produce really stable output, even if patch level >= 10.


diffs (16 lines):

diff --git a/clients/odbc/tests/ODBCtester.c b/clients/odbc/tests/ODBCtester.c
--- a/clients/odbc/tests/ODBCtester.c
+++ b/clients/odbc/tests/ODBCtester.c
@@ -88,11 +88,7 @@ retrieveDiagMsg(SQLHANDLE stmt, char * o
                /* The message layout is: "[MonetDB][ODBC Driver 
11.46.0][MonetDB-Test]error/warning text".
                   The ODBC driver version numbers changes in time. Overwrite 
it to get a stable output */
                if (strncmp(msg, "[MonetDB][ODBC Driver 11.", 25) == 0) {
-                       for (int i = 25; msg[i] != ']'; i++) {
-                               if (isdigit(msg[i])) {
-                                       msg[i] = '#';
-                               }
-                       }
+                       return snprintf(outp, outp_len, "SQLstate %s, Errnr %d, 
Message [MonetDB][ODBC Driver 11.##.#]%s\n", (char*)state, (int)errnr, 
strchr(msg + 25, ']') + 1);
                }
                return snprintf(outp, outp_len, "SQLstate %s, Errnr %d, Message 
%s\n", (char*)state, (int)errnr, (char*)msg);
        }
_______________________________________________
checkin-list mailing list -- checkin-list@monetdb.org
To unsubscribe send an email to checkin-list-le...@monetdb.org

Reply via email to