Date: Friday, March 3, 2006 @ 18:19:15
  Author: gilles
    Path: /cvsroot/carob/carob/src

Modified: DriverResultSet.cpp (1.43 -> 1.44)

Authorize BigDecimal to string conversion
Prepared code (commented) for int and int64


---------------------+
 DriverResultSet.cpp |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)


Index: carob/src/DriverResultSet.cpp
diff -u carob/src/DriverResultSet.cpp:1.43 carob/src/DriverResultSet.cpp:1.44
--- carob/src/DriverResultSet.cpp:1.43  Thu Mar  2 16:01:36 2006
+++ carob/src/DriverResultSet.cpp       Fri Mar  3 18:19:15 2006
@@ -259,8 +259,6 @@
       buffer << *(static_cast<wstring*>((data[currentRow][columnIndex - 
1].as_other)));
     break;
     case TT_BIGDECIMAL:
-//      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;
@@ -339,7 +337,7 @@
   switch (columnTypeTags[columnIndex - 1])
   {
     case TT_STRING:
-    { //these bracket to be able to declare loc var without warns
+    { //these brackets to be able to declare loc var without warns
       wstring valAsString = 
trim(*static_cast<wstring*>((data[currentRow][columnIndex - 1].as_other)));
       //Tries to parse the string as an integer
       if(!wstringTo<int>(ret, valAsString))
@@ -359,6 +357,8 @@
     }
     break;
     case TT_BIGDECIMAL:
+//      BigDecimal* bd = 
(static_cast<BigDecimal*>((data[currentRow][columnIndex - 1].as_other)));
+//      ret = static_cast<int>(*bd);
       throw NotImplementedException(L"BigDecimal to int conversion not 
implemented yet.");
     break;
     case TT_BOOLEAN:
@@ -459,6 +459,8 @@
     }
     break;
     case TT_BIGDECIMAL:
+      // BigDecimal* bd = 
(static_cast<BigDecimal*>((data[currentRow][columnIndex - 1].as_other)));
+      // ret = static_cast<long>(*bd);
       throw NotImplementedException(L"BigDecimal to int64 conversion not 
implemented yet.");
     break;
     case TT_BOOLEAN:

_______________________________________________
Carob-commits mailing list
[email protected]
https://forge.continuent.org/mailman/listinfo/carob-commits

Reply via email to