Date: Friday, December 9, 2005 @ 11:25:58
Author: gilles
Path: /cvsroot/carob/carob/src
Modified: DriverResultSet.cpp (1.17 -> 1.18)
Corrected getString() to return empty string instead of NULL
Bug ref CAROB-47
---------------------+
DriverResultSet.cpp | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletion(-)
Index: carob/src/DriverResultSet.cpp
diff -u carob/src/DriverResultSet.cpp:1.17 carob/src/DriverResultSet.cpp:1.18
--- carob/src/DriverResultSet.cpp:1.17 Fri Dec 9 10:58:43 2005
+++ carob/src/DriverResultSet.cpp Fri Dec 9 11:25:58 2005
@@ -202,7 +202,12 @@
{
checkRowAndColPosAndSetNullFlag(columnIndex);
if (wasNullFlag)
- return NULL;
+ {
+ //We cannot return a NULL object, so we send an empty string, and let the
+ //user check nullity with wasNull() or isNull()
+ //TODO: should we additionnaly return a "NullValueException" ?
+ return L"";
+ }
std::wostringstream buffer;
_______________________________________________
Carob-commits mailing list
[email protected]
https://forge.continuent.org/mailman/listinfo/carob-commits