Date: Monday, January 30, 2006 @ 22:54:50
Author: marc
Path: /cvsroot/carob/carob/test/40-Parameter-PreparedStatement
Modified: TestParameterStatement.cpp (1.4 -> 1.5)
fixed setString() calls that do not compile anymore following CAROB-55
templatization. Check doxygen in ParameterStatement.hpp for the
explanation.
----------------------------+
TestParameterStatement.cpp | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
Index: carob/test/40-Parameter-PreparedStatement/TestParameterStatement.cpp
diff -u
carob/test/40-Parameter-PreparedStatement/TestParameterStatement.cpp:1.4
carob/test/40-Parameter-PreparedStatement/TestParameterStatement.cpp:1.5
--- carob/test/40-Parameter-PreparedStatement/TestParameterStatement.cpp:1.4
Fri Jan 27 18:49:08 2006
+++ carob/test/40-Parameter-PreparedStatement/TestParameterStatement.cpp
Mon Jan 30 22:54:49 2006
@@ -128,7 +128,7 @@
{
logDebug(fctName, L"Executing update - should succeed");
}
- statementPtr->setString(1,L"changed by testExecuteUpdateGood");
+ statementPtr->setString(1, std::wstring(L"changed by
testExecuteUpdateGood"));
statementPtr->setInt(2,0);
int nbRowsAffected = statementPtr->executeUpdate();
if (isDebugEnabled())
@@ -182,7 +182,7 @@
{
logDebug(fctName, L"Executing execute(UPDATE FROM address...) - should
succeed");
}
- statementPtr->setString(1, L"changed by testExecuteWithUpdate");
+ statementPtr->setString<const wchar_t *>(1, L"changed by
testExecuteWithUpdate");
statementPtr->setInt(2, 0);
bool isRS = statementPtr->execute();
CPPUNIT_ASSERT(!isRS);
_______________________________________________
Carob-commits mailing list
[email protected]
https://forge.continuent.org/mailman/listinfo/carob-commits