Date: Friday, February 24, 2006 @ 18:43:53
Author: gilles
Path: /cvsroot/carob/carob/src
Modified: SQLDataSerialization.cpp (1.27 -> 1.28)
(minor fix)
Simplified code on timestamp and avoid unnecessary copy
--------------------------+
SQLDataSerialization.cpp | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
Index: carob/src/SQLDataSerialization.cpp
diff -u carob/src/SQLDataSerialization.cpp:1.27
carob/src/SQLDataSerialization.cpp:1.28
--- carob/src/SQLDataSerialization.cpp:1.27 Fri Feb 24 18:34:19 2006
+++ carob/src/SQLDataSerialization.cpp Fri Feb 24 18:43:52 2006
@@ -267,11 +267,11 @@
//Timestamp is a long *and* an integer. Make use of our struct to put
//both values in it
ResultSetDataType res;
- SQLTimeStamp ts;
- input>>ts.time;
- ts.time = ((ts.time/1000)*1000);
- input>>ts.nanos;
- res.as_other = new SQLTimeStamp(ts);
+ SQLTimeStamp* tsPtr;
+ input>>tsPtr->time;
+ tsPtr->time = ((tsPtr->time/1000)*1000);
+ input>>tsPtr->nanos;
+ res.as_other = tsPtr;
return res;
}
_______________________________________________
Carob-commits mailing list
[email protected]
https://forge.continuent.org/mailman/listinfo/carob-commits