Date: Tuesday, March 28, 2006 @ 08:57:35
  Author: zsolt
    Path: /cvsroot/carob/libmysequoia/test

Modified: TestMySQLAPI.cpp (1.31 -> 1.32)

adjusted the blob size to 1M


------------------+
 TestMySQLAPI.cpp |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)


Index: libmysequoia/test/TestMySQLAPI.cpp
diff -u libmysequoia/test/TestMySQLAPI.cpp:1.31 
libmysequoia/test/TestMySQLAPI.cpp:1.32
--- libmysequoia/test/TestMySQLAPI.cpp:1.31     Mon Mar 27 14:03:29 2006
+++ libmysequoia/test/TestMySQLAPI.cpp  Tue Mar 28 08:57:35 2006
@@ -781,10 +781,10 @@
   CPPUNIT_ASSERT(mysql_real_connect(mysql, HOST, USER1, PASSWD1, DB1, 0, 0, 0) 
!= 0);
 
   mysql_query(mysql, "drop table t1");
-  CPPUNIT_ASSERT(mysql_query(mysql, "create table t1(a blob)") == 0);
+  CPPUNIT_ASSERT(mysql_query(mysql, "create table t1(a longblob)") == 0);
   
-  //Test a 50k query blob
-  unsigned int size = 50 * 1024;
+  //Test a 1M query blob
+  unsigned int size = 1 * 1024 * 1024;
   str1 = new char[size + strlen(query_ins2) + 3];
   strcpy(str1, query_ins2);
   p = str1 + strlen(query_ins2);
@@ -816,7 +816,6 @@
   CPPUNIT_ASSERT(mysql_stmt_prepare(stmt, query_ins, strlen(query_ins)) == 0);
   CPPUNIT_ASSERT(mysql_stmt_param_count(stmt) == 1);
   
-  size = 50 * 1024;
   str1 = new char[size]; p = str1;
   str2 = new char[size];
   for (unsigned int i=0; i<size; i++, p++)

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

Reply via email to