Date: Friday, February 24, 2006 @ 19:06:00
Author: gilles
Path: /cvsroot/carob/carob/src
Modified: DriverResultSet.cpp (1.41 -> 1.42) SQLDataSerialization.cpp
(1.28 -> 1.29)
Re-enabled BigDecimal serialization and getAsString-ing.
For now, we cannot do anything with the data (big decimal class is not
finished) but as we are able to receive it, it is ok to enable it
--------------------------+
DriverResultSet.cpp | 6 +++++-
SQLDataSerialization.cpp | 2 --
2 files changed, 5 insertions(+), 3 deletions(-)
Index: carob/src/DriverResultSet.cpp
diff -u carob/src/DriverResultSet.cpp:1.41 carob/src/DriverResultSet.cpp:1.42
--- carob/src/DriverResultSet.cpp:1.41 Fri Feb 24 18:34:19 2006
+++ carob/src/DriverResultSet.cpp Fri Feb 24 19:06:00 2006
@@ -21,6 +21,7 @@
#include "DriverResultSet.hpp"
+#include "BigDecimal.hpp"
#include "Connection.hpp"
#include "TypeTag.hpp"
#include "Statement.hpp"
@@ -258,7 +259,10 @@
buffer << *(static_cast<wstring*>((data[currentRow][columnIndex -
1].as_other)));
break;
case TT_BIGDECIMAL:
- throw NotImplementedException(L"BigDecimal to string conversion not
implemented yet.");
+// throw NotImplementedException(L"BigDecimal to string conversion not
implemented yet.");
+ //let's use the dummy function, open for debugging...
+ BigDecimal* bd = (static_cast<BigDecimal*>((data[currentRow][columnIndex
- 1].as_other)));
+ buffer << static_cast<wstring>(*bd);
break;
case TT_BOOLEAN:
buffer << ((data[currentRow])[columnIndex - 1]).as_bool;
Index: carob/src/SQLDataSerialization.cpp
diff -u carob/src/SQLDataSerialization.cpp:1.28
carob/src/SQLDataSerialization.cpp:1.29
--- carob/src/SQLDataSerialization.cpp:1.28 Fri Feb 24 18:43:52 2006
+++ carob/src/SQLDataSerialization.cpp Fri Feb 24 19:06:00 2006
@@ -284,8 +284,6 @@
return stringDeserializer;
break;
case TT_BIGDECIMAL:
- // comment out the throw() line below to test the new bigdecimal
serialization
- throw NotImplementedException(L"BigDecimal serialization not enabled
yet: waiting for sequoia commit");
return bigDecimalDeserializer;
break;
case TT_BOOLEAN:
_______________________________________________
Carob-commits mailing list
[email protected]
https://forge.continuent.org/mailman/listinfo/carob-commits