Date: Thursday, March 23, 2006 @ 15:30:36
Author: gilles
Path: /cvsroot/carob/carob/test/40-Parameter-PreparedStatement
Modified: TestParameterStatement.cpp (1.10 -> 1.11)
Reduced allocated BigDecimal array, added warning for one that wants to add a
test value
----------------------------+
TestParameterStatement.cpp | 3 ++-
1 files changed, 2 insertions(+), 1 deletion(-)
Index: carob/test/40-Parameter-PreparedStatement/TestParameterStatement.cpp
diff -u
carob/test/40-Parameter-PreparedStatement/TestParameterStatement.cpp:1.10
carob/test/40-Parameter-PreparedStatement/TestParameterStatement.cpp:1.11
--- carob/test/40-Parameter-PreparedStatement/TestParameterStatement.cpp:1.10
Wed Mar 22 19:24:41 2006
+++ carob/test/40-Parameter-PreparedStatement/TestParameterStatement.cpp
Thu Mar 23 15:30:36 2006
@@ -282,7 +282,7 @@
ParameterStatement* pstmt = connectionPtr->
createParameterStatement(wstring(L"INSERT into ") + TABLE_NAME + L" values
(?)");
- BigDecimal testVals[50];
+ BigDecimal testVals[15];
int nbTestVals = 0;
testVals[nbTestVals++] = BigDecimal(L"-123,456");
testVals[nbTestVals++] = BigDecimal(L"123,456");
@@ -298,6 +298,7 @@
testVals[nbTestVals++] = BigDecimal(numeric_limits<long>::max());
testVals[nbTestVals++] = BigDecimal(numeric_limits<long long>::min());
testVals[nbTestVals++] = BigDecimal(numeric_limits<long long>::max());
+ //TODO change testVals array size when adding new values
for (int i=0; i<nbTestVals; i++)
{
_______________________________________________
Carob-commits mailing list
[email protected]
https://forge.continuent.org/mailman/listinfo/carob-commits