Date: Wednesday, March 15, 2006 @ 08:50:46
  Author: zsolt
    Path: /cvsroot/carob/libmysequoia/src

Modified: CarobStmt.cpp (1.28 -> 1.29)

in the case of MYSQL_TYPE_LONGLONG the result is read according to the unsigned 
bit (getAsUInt64 or getAsInt64)


---------------+
 CarobStmt.cpp |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletion(-)


Index: libmysequoia/src/CarobStmt.cpp
diff -u libmysequoia/src/CarobStmt.cpp:1.28 libmysequoia/src/CarobStmt.cpp:1.29
--- libmysequoia/src/CarobStmt.cpp:1.28 Fri Mar  3 10:57:48 2006
+++ libmysequoia/src/CarobStmt.cpp      Wed Mar 15 08:50:46 2006
@@ -780,7 +780,10 @@
       case MYSQL_TYPE_LONGLONG:
         //we need to use getAsInt64 and not getInt64 because mysql java client 
will convert the
         //unsigned long to bigint
-        result = new int64_t(liveResultSet->getAsInt64(colNo));
+        if (fPtr->flags & UNSIGNED_FLAG)
+          result = new int64_t(liveResultSet->getAsUInt64(colNo));
+        else
+          result = new int64_t(liveResultSet->getAsInt64(colNo));
         break;
       case MYSQL_TYPE_FLOAT:
         result = new float(liveResultSet->getFloat(colNo));

_______________________________________________
Carob-commits mailing list
[email protected]
https://forge.continuent.org/mailman/listinfo/carob-commits

Reply via email to