Date: Wednesday, June 6, 2007 @ 11:41:01
Author: marc
Path: /cvsroot/carob/libmysequoia/test
Modified: TestMySQLAPI.cpp (1.53 -> 1.54)
Added CPPUNIT_ASSERT(row[1]); in some configurations the
controller/MySQL/whatever returns us a NULL instead of a zero year
------------------+
TestMySQLAPI.cpp | 1 +
1 files changed, 1 insertion(+)
Index: libmysequoia/test/TestMySQLAPI.cpp
diff -u libmysequoia/test/TestMySQLAPI.cpp:1.53
libmysequoia/test/TestMySQLAPI.cpp:1.54
--- libmysequoia/test/TestMySQLAPI.cpp:1.53 Thu May 10 18:48:42 2007
+++ libmysequoia/test/TestMySQLAPI.cpp Wed Jun 6 11:41:01 2007
@@ -879,6 +879,7 @@
// second row
CPPUNIT_ASSERT((row = mysql_fetch_row(res)) != 0);
CPPUNIT_ASSERT(strcmp(row[0], "2000") == 0);
+ CPPUNIT_ASSERT(row[1]); // in some configurations the
controller/MySQL/whatever returns us a NULL!?
CPPUNIT_ASSERT(strcmp(row[1], "00") == 0);
// third row
CPPUNIT_ASSERT((row = mysql_fetch_row(res)) != 0);
_______________________________________________
Carob-commits mailing list
[email protected]
https://forge.continuent.org/mailman/listinfo/carob-commits