Changeset: 53fd890a72af for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=53fd890a72af
Modified Files:
        clients/odbc/driver/SQLParamOptions.c
Branch: Feb2013
Log Message:

Fix implementation of SQLParamOptions function.
This should fix bug 3397.


diffs (13 lines):

diff --git a/clients/odbc/driver/SQLParamOptions.c 
b/clients/odbc/driver/SQLParamOptions.c
--- a/clients/odbc/driver/SQLParamOptions.c
+++ b/clients/odbc/driver/SQLParamOptions.c
@@ -50,7 +50,8 @@ SQLParamOptions(SQLHSTMT StatementHandle
 #endif
 
        /* use mapping as described in ODBC 3 SDK Help file */
-       rc = SQLSetStmtAttr_(stmt, SQL_ATTR_PARAMSET_SIZE, &RowNumber, 0);
+       rc = SQLSetStmtAttr_(stmt, SQL_ATTR_PARAMSET_SIZE,
+                            (SQLPOINTER) (size_t) RowNumber, 0);
 
        if (SQL_SUCCEEDED(rc)) {
                rc = SQLSetStmtAttr_(stmt, SQL_ATTR_PARAMS_PROCESSED_PTR,
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to