Date: Monday, March 27, 2006 @ 09:11:08
  Author: csaba
    Path: /cvsroot/carob/carob/src

Modified: DriverResultSet.cpp (1.51 -> 1.52)

Corrected compilation problem on gcc 3.3.5 and gcc 4.0.3 Fix for CAROB-63


---------------------+
 DriverResultSet.cpp |   24 ++++++++++++++++++------
 1 files changed, 18 insertions(+), 6 deletions(-)


Index: carob/src/DriverResultSet.cpp
diff -u carob/src/DriverResultSet.cpp:1.51 carob/src/DriverResultSet.cpp:1.52
--- carob/src/DriverResultSet.cpp:1.51  Thu Mar 23 15:38:10 2006
+++ carob/src/DriverResultSet.cpp       Mon Mar 27 09:11:08 2006
@@ -268,9 +268,11 @@
       buffer << *(static_cast<wstring*>((data[currentRow][columnIndex - 
1].as_other)));
     break;
     case TT_BIGDECIMAL:
+    {
       BigDecimal* bd = (static_cast<BigDecimal*>((data[currentRow][columnIndex 
- 1].as_other)));
       buffer << static_cast<wstring>(*bd);
-    break;
+      break;
+    }
     case TT_BOOLEAN:
       buffer << ((data[currentRow])[columnIndex - 1]).as_bool;
     break;
@@ -367,9 +369,11 @@
     }
     break;
     case TT_BIGDECIMAL:
+    {
       BigDecimal* bd = (static_cast<BigDecimal*>((data[currentRow][columnIndex 
- 1].as_other)));
       ret = static_cast<int>(*bd);
-    break;
+      break;
+    }
     case TT_BOOLEAN:
       if (((data[currentRow])[columnIndex - 1]).as_bool)
         ret = 1;
@@ -469,9 +473,11 @@
     }
     break;
     case TT_BIGDECIMAL:
+    {
       BigDecimal* bd = (static_cast<BigDecimal*>((data[currentRow][columnIndex 
- 1].as_other)));
       ret = static_cast<int64_t>(*bd);
-    break;
+      break;
+    }
     case TT_BOOLEAN:
       if (((data[currentRow])[columnIndex - 1]).as_bool)
         ret = 1;
@@ -551,9 +557,11 @@
     }
     break;
     case TT_BIGDECIMAL:
+    {
       BigDecimal* bd = (static_cast<BigDecimal*>((data[currentRow][columnIndex 
- 1].as_other)));
       ret = static_cast<uint64_t>(*bd);
-    break;
+      break;
+    }
     case TT_BOOLEAN:
       if (((data[currentRow])[columnIndex - 1]).as_bool)
         ret = 1;
@@ -655,9 +663,11 @@
     }
     break;
     case TT_BIGDECIMAL:
+    {
       BigDecimal* bd = (static_cast<BigDecimal*>((data[currentRow][columnIndex 
- 1].as_other)));
       ret = static_cast<float>(*bd);
-    break;
+      break;
+    }
     case TT_BOOLEAN:
       if (((data[currentRow])[columnIndex - 1]).as_bool)
         ret = 1;
@@ -757,9 +767,11 @@
     }
     break;
     case TT_BIGDECIMAL:
+    {
       BigDecimal* bd = (static_cast<BigDecimal*>((data[currentRow][columnIndex 
- 1].as_other)));
       ret = static_cast<double>(*bd);
-    break;
+      break;
+    }
     case TT_BOOLEAN:
       if (((data[currentRow])[columnIndex - 1]).as_bool)
         ret = 1;

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

Reply via email to