Changeset: 1b7efcbc9f7b for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=1b7efcbc9f7b
Modified Files:
        clients/odbc/driver/ODBCConvert.c
Branch: Aug2018
Log Message:

Always add separator before adding value.
This should fix bug 6678.


diffs (22 lines):

diff --git a/clients/odbc/driver/ODBCConvert.c 
b/clients/odbc/driver/ODBCConvert.c
--- a/clients/odbc/driver/ODBCConvert.c
+++ b/clients/odbc/driver/ODBCConvert.c
@@ -2937,6 +2937,9 @@ ODBCStore(ODBCStmt *stmt,
                break;
        }
 
+       assigns(buf, bufpos, buflen, sep, stmt);
+       *bufp = buf;
+
        if (strlen_or_ind_ptr != NULL && *strlen_or_ind_ptr == SQL_NULL_DATA) {
                assigns(buf, bufpos, buflen, "NULL", stmt);
                *bufp = buf;
@@ -3181,8 +3184,6 @@ ODBCStore(ODBCStmt *stmt,
                break;
        }
 
-       assigns(buf, bufpos, buflen, sep, stmt);
-       *bufp = buf;
        /* just the types supported by the server */
        switch (sqltype) {
        case SQL_CHAR:
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to