Changeset: f27634b0cf71 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=f27634b0cf71
Modified Files:
        clients/odbc/driver/ODBCError.c
        clients/odbc/driver/SQLGetDiagRec.c
Branch: Aug2011
Log Message:

Use actual version number in error messages, not a made up one.


diffs (24 lines):

diff --git a/clients/odbc/driver/ODBCError.c b/clients/odbc/driver/ODBCError.c
--- a/clients/odbc/driver/ODBCError.c
+++ b/clients/odbc/driver/ODBCError.c
@@ -50,7 +50,7 @@ struct tODBCError {
        struct tODBCError *next;        /* pointer to the next Error object or 
NULL */
 };
 
-const char ODBCErrorMsgPrefix[] = "[MonetDB][ODBC Driver 1.0]";
+const char ODBCErrorMsgPrefix[] = "[MonetDB][ODBC Driver " PACKAGE_VERSION "]";
 const int ODBCErrorMsgPrefixLength = (int) sizeof(ODBCErrorMsgPrefix) - 1;
 
 /*
diff --git a/clients/odbc/driver/SQLGetDiagRec.c 
b/clients/odbc/driver/SQLGetDiagRec.c
--- a/clients/odbc/driver/SQLGetDiagRec.c
+++ b/clients/odbc/driver/SQLGetDiagRec.c
@@ -123,7 +123,7 @@ SQLGetDiagRec_(SQLSMALLINT HandleType,
                MessageText[BufferLength] = 0;  /* write it already */
 
                /* first write the error message prefix text:
-                * [MonetDB][ODBC driver 1.0]; this is
+                * [MonetDB][ODBC driver VERSION]; this is
                 * required by the ODBC spec and used to
                 * determine where the error originated
                 */
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list

Reply via email to