Date: Thursday, January 11, 2007 @ 23:19:52
Author: marc
Path: /cvsroot/carob/carob/test/40-Parameter-PreparedStatement
Modified: TestIEEE754.cpp (1.17 -> 1.18)
splitted write_read() into write() + read_compare()
-----------------+
TestIEEE754.cpp | 15 +++++++++++----
1 files changed, 11 insertions(+), 4 deletions(-)
Index: carob/test/40-Parameter-PreparedStatement/TestIEEE754.cpp
diff -u carob/test/40-Parameter-PreparedStatement/TestIEEE754.cpp:1.17
carob/test/40-Parameter-PreparedStatement/TestIEEE754.cpp:1.18
--- carob/test/40-Parameter-PreparedStatement/TestIEEE754.cpp:1.17 Wed Dec
20 17:42:11 2006
+++ carob/test/40-Parameter-PreparedStatement/TestIEEE754.cpp Thu Jan 11
23:19:52 2007
@@ -85,7 +85,7 @@
void
-write_read(Connection * conn, const fd_t data[])
+write(Connection * conn, const fd_t data[])
{
// WRITE
ParameterStatement *
@@ -103,6 +103,11 @@
row++;
}
+}
+
+void
+read_compare(Connection * conn, const fd_t data[])
+{
// READ
Statement *
retrieve(conn->
@@ -111,7 +116,7 @@
DriverResultSet* drsPtr =
retrieve->executeQuery(RETRIEVE_STMT);
- row = 0;
+ int row = 0;
while (data[row].f || data[row].d) {
CPPUNIT_ASSERT(drsPtr->next());
CPPUNIT_ASSERT(drsPtr->getAsInt(1) == row);
@@ -158,7 +163,8 @@
{ 0, 0 } // END OF DATA
};
- write_read(connectionPtr, basicdata);
+ write(connectionPtr, basicdata);
+ read_compare(connectionPtr, basicdata);
}
@@ -186,7 +192,8 @@
{ 0, 0 } // END OF DATA
};
- write_read(connectionPtr, basicdata);
+ write(connectionPtr, basicdata);
+ read_compare(connectionPtr, basicdata);
}
_______________________________________________
Carob-commits mailing list
[email protected]
https://forge.continuent.org/mailman/listinfo/carob-commits