Changeset: 59887f02c7a5 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=59887f02c7a5
Modified Files:
        clients/odbc/driver/ODBCConvert.c
Branch: Jun2016
Log Message:

Use a large enough type to store a fraction factor.
This fixes bug 4002.
Note that this does not implement HUGEINT support in the MonetDB ODBC
driver, but it fixes the immediate problem of the bug.


diffs (13 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
@@ -1344,7 +1344,8 @@ ODBCFetch(ODBCStmt *stmt,
                case SQL_INTEGER:
                case SQL_BIGINT:
                case SQL_BIT: {
-                       int f, n;
+                       SQLUBIGINT f;
+                       int n;
 
                        data = (char *) ptr;
 
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to