Date: Friday, December 9, 2005 @ 10:58:43
Author: zsolt
Path: /cvsroot/carob/carob/src
Modified: DriverResultSet.cpp (1.16 -> 1.17)
Modified DriverResultSet::receiveRows to handle results with null values.
Associated tracker id: CAROB-46
---------------------+
DriverResultSet.cpp | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
Index: carob/src/DriverResultSet.cpp
diff -u carob/src/DriverResultSet.cpp:1.16 carob/src/DriverResultSet.cpp:1.17
--- carob/src/DriverResultSet.cpp:1.16 Thu Dec 8 15:18:37 2005
+++ carob/src/DriverResultSet.cpp Fri Dec 9 10:58:43 2005
@@ -306,15 +306,15 @@
nullsForThisRow.push_back(b);
}
nulls.push_back(nullsForThisRow);
- //now the values are copied, so remove these elements
- nullsForThisRow.clear();
for (int32_t colCnt2 = 0; colCnt2 < nbOfColumns; colCnt2++)
{
- rowOfData.push_back(deserializers[colCnt2](socket));
+ if (!nullsForThisRow[colCnt2])
+ rowOfData.push_back(deserializers[colCnt2](socket));
}
data.push_back(rowOfData);
//now the values are copied, so remove these elements
+ nullsForThisRow.clear();
rowOfData.clear();
//now we have some data
if (dataIsNull)
_______________________________________________
Carob-commits mailing list
[email protected]
https://forge.continuent.org/mailman/listinfo/carob-commits