Date: Friday, December 9, 2005 @ 16:38:39
Author: zsolt
Path: /cvsroot/carob/carob/src
Modified: DriverResultSet.cpp (1.18 -> 1.19)
In function receiveRows() for null results insert empty data.
Bug ref CAROB-47 (https://forge.continuent.org/jira/browse/CAROB-47)
---------------------+
DriverResultSet.cpp | 5 +++++
1 files changed, 5 insertions(+)
Index: carob/src/DriverResultSet.cpp
diff -u carob/src/DriverResultSet.cpp:1.18 carob/src/DriverResultSet.cpp:1.19
--- carob/src/DriverResultSet.cpp:1.18 Fri Dec 9 11:25:58 2005
+++ carob/src/DriverResultSet.cpp Fri Dec 9 16:38:39 2005
@@ -288,6 +288,9 @@
vector<bool> nullsForThisRow;
vector<ResultSetDataType> rowOfData;
+ //Declare empty result which is used in case of null values
+ ResultSetDataType emptyResult;
+ memset(&emptyResult,0,sizeof(emptyResult));
//Reserve memory now so it won't be done during iterations
nullsForThisRow.reserve(nbOfColumns);
rowOfData.reserve(nbOfColumns);
@@ -316,6 +319,8 @@
{
if (!nullsForThisRow[colCnt2])
rowOfData.push_back(deserializers[colCnt2](socket));
+ else
+ rowOfData.push_back(emptyResult);
}
data.push_back(rowOfData);
//now the values are copied, so remove these elements
_______________________________________________
Carob-commits mailing list
[email protected]
https://forge.continuent.org/mailman/listinfo/carob-commits