Date: Monday, January 30, 2006 @ 22:58:43
  Author: marc
    Path: /cvsroot/carob/carob/test/40-Parameter-PreparedStatement

Modified: TestParameterStatement.cpp (1.5 -> 1.6)

Added test for setBoolean<wstring>


----------------------------+
 TestParameterStatement.cpp |   10 ++++++++++
 1 files changed, 10 insertions(+)


Index: carob/test/40-Parameter-PreparedStatement/TestParameterStatement.cpp
diff -u 
carob/test/40-Parameter-PreparedStatement/TestParameterStatement.cpp:1.5 
carob/test/40-Parameter-PreparedStatement/TestParameterStatement.cpp:1.6
--- carob/test/40-Parameter-PreparedStatement/TestParameterStatement.cpp:1.5    
Mon Jan 30 22:54:49 2006
+++ carob/test/40-Parameter-PreparedStatement/TestParameterStatement.cpp        
Mon Jan 30 22:58:43 2006
@@ -222,12 +222,22 @@
   int uc = pstmt->executeUpdate();
   CPPUNIT_ASSERT(1 == uc);
 
+  pstmt->setBoolean(1, std::wstring(L"das ist falsch"));
+  pstmt->setBoolean(2, std::wstring(L"tRue"));
+  uc = pstmt->executeUpdate();
+  CPPUNIT_ASSERT(1 == uc);
+
   Statement* stmt = connectionPtr-> createStatement();
 
   DriverResultSet * drs = stmt->executeQuery(std::wstring() + L"SELECT * from 
" + TABLE_NAME);
   CPPUNIT_ASSERT(drs->next());
   CPPUNIT_ASSERT(0 == drs->getAsInt(1)); // FIXME: replace by getBoolean()
   CPPUNIT_ASSERT(1 == drs->getAsInt(2));
+  CPPUNIT_ASSERT(drs->next());
+  CPPUNIT_ASSERT(0 == drs->getAsInt(1)); // FIXME: replace by getBoolean()
+  CPPUNIT_ASSERT(1 == drs->getAsInt(2));
+
+
 }
 
 void TestParameterStatement::testStrings()

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

Reply via email to