refactored tests (#147)
This commit is contained in:
@ -91,10 +91,10 @@ int check_longblob_data(TestConnections* Test, MYSQL * conn, unsigned long chunk
|
||||
{
|
||||
//char *select_stmt = (char *) "SELECT id, x, b FROM long_blob_table WHERE id = ?";
|
||||
char *select_stmt = (char *) "SELECT id, x, b FROM long_blob_table ";
|
||||
MYSQL_STMT * stmt = mysql_stmt_init(Test->conn_rwsplit);
|
||||
MYSQL_STMT * stmt = mysql_stmt_init(Test->maxscales->conn_rwsplit[0]);
|
||||
if (stmt == NULL)
|
||||
{
|
||||
Test->add_result(1, "stmt init error: %s\n", mysql_error(Test->conn_rwsplit));
|
||||
Test->add_result(1, "stmt init error: %s\n", mysql_error(Test->maxscales->conn_rwsplit[0]));
|
||||
}
|
||||
|
||||
Test->add_result(mysql_stmt_prepare(stmt, select_stmt, strlen(select_stmt)), "Error preparing stmt: %s\n",
|
||||
@ -154,7 +154,7 @@ int check_longblob_data(TestConnections* Test, MYSQL * conn, unsigned long chunk
|
||||
|
||||
if (mysql_stmt_execute(stmt) != 0)
|
||||
{
|
||||
Test->tprintf("Error executing stmt %s\n", mysql_error(Test->conn_rwsplit));
|
||||
Test->tprintf("Error executing stmt %s\n", mysql_error(Test->maxscales->conn_rwsplit[0]));
|
||||
}
|
||||
|
||||
if (mysql_stmt_store_result(stmt) != 0)
|
||||
|
||||
Reference in New Issue
Block a user