Date: Wednesday, July 26, 2006 @ 15:40:40
  Author: csaba
    Path: /cvsroot/carob/libmysequoia/test

Modified: TestMySQLAPI.cpp (1.38 -> 1.39)

Uncommenting the max_allowed_packet setting because currently is not working 
due to a Connector/J bug.


------------------+
 TestMySQLAPI.cpp |   13 ++++++++++++-
 1 files changed, 12 insertions(+), 1 deletion(-)


Index: libmysequoia/test/TestMySQLAPI.cpp
diff -u libmysequoia/test/TestMySQLAPI.cpp:1.38 
libmysequoia/test/TestMySQLAPI.cpp:1.39
--- libmysequoia/test/TestMySQLAPI.cpp:1.38     Thu Jul 13 16:30:51 2006
+++ libmysequoia/test/TestMySQLAPI.cpp  Wed Jul 26 15:40:40 2006
@@ -753,9 +753,20 @@
 
   CPPUNIT_ASSERT(mysql_real_connect(mysql, HOST, USER1, PASSWD1, DB1, 0, 0, 0) 
!= 0);
 
+/*
+ * Currently is a bug in Connector/J. This value must be set in the server cfg 
file
+ * 
+  CPPUNIT_ASSERT(mysql_query(mysql, "set max_allowed_packet=2*1024*1024") == 
0);
+  CPPUNIT_ASSERT(mysql_query(mysql, "show variables like 
'max_allowed_packet'") == 0);
+  CPPUNIT_ASSERT((res = mysql_use_result(mysql)) != 0); 
+  CPPUNIT_ASSERT((row = mysql_fetch_row(res)) != 0);
+  CPPUNIT_ASSERT(strcmp(row[1], "2097152") == 0);
+  mysql_free_result(res);
+*/   
+
   mysql_query(mysql, "drop table t1");
   CPPUNIT_ASSERT(mysql_query(mysql, "create table t1(a longblob)") == 0);
-  
+
   //Test a 1M query blob
   unsigned int size = 1 * 1024 * 1024;
   str1 = new char[size + strlen(query_ins2) + 3];

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

Reply via email to