Date: Thursday, December 15, 2005 @ 15:55:57
Author: gilles
Path: /cvsroot/carob/libmysequoia/src
Modified: CarobMySQL.cpp (1.20 -> 1.21)
Modified getInt32 and getString functions to return the value *only* if the
column is of given type (resp. int or string)
Introduced getAsInt and getAsString functions that try to do conversion if the
value is not of given type, as did getInt32 and getString before...
----------------+
CarobMySQL.cpp | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
Index: libmysequoia/src/CarobMySQL.cpp
diff -u libmysequoia/src/CarobMySQL.cpp:1.20
libmysequoia/src/CarobMySQL.cpp:1.21
--- libmysequoia/src/CarobMySQL.cpp:1.20 Thu Dec 15 13:31:25 2005
+++ libmysequoia/src/CarobMySQL.cpp Thu Dec 15 15:55:57 2005
@@ -727,7 +727,7 @@
{
if (!drsPtr->isNull(i+1))
{
- std::wstring s = drsPtr->getString(i+1);
+ std::wstring s = drsPtr->getAsString(i+1);
unsigned long field_len = s.length();
row[i] = (char *)(unsigned long)(result.size()+1);
_______________________________________________
Carob-commits mailing list
[email protected]
https://forge.continuent.org/mailman/listinfo/carob-commits