Commit 6147be6e authored by unknown's avatar unknown

cs fixes from last commit

parent 1dccfdac
...@@ -11755,7 +11755,7 @@ static void test_bug12001() ...@@ -11755,7 +11755,7 @@ static void test_bug12001()
{ {
MYSQL *mysql_local; MYSQL *mysql_local;
MYSQL_RES *result; MYSQL_RES *result;
const char *query = "DROP TABLE IF EXISTS test_table;" const char *query= "DROP TABLE IF EXISTS test_table;"
"CREATE TABLE test_table(id INT);" "CREATE TABLE test_table(id INT);"
"INSERT INTO test_table VALUES(10);" "INSERT INTO test_table VALUES(10);"
"UPDATE test_table SET id=20 WHERE id=10;" "UPDATE test_table SET id=20 WHERE id=10;"
...@@ -11779,16 +11779,16 @@ static void test_bug12001() ...@@ -11779,16 +11779,16 @@ static void test_bug12001()
exit(1); exit(1);
} }
rc = mysql_query(mysql_local, query); rc= mysql_query(mysql_local, query);
myquery(rc); myquery(rc);
do { do {
if (mysql_field_count(mysql_local) && (result = mysql_use_result(mysql_local))) { if (mysql_field_count(mysql_local) && (result= mysql_use_result(mysql_local))) {
mysql_free_result(result); mysql_free_result(result);
} }
} while (!(res = mysql_next_result(mysql_local))); } while (!(res= mysql_next_result(mysql_local)));
rc = mysql_query(mysql_local, "DROP TABLE IF EXISTS test_table"); rc= mysql_query(mysql_local, "DROP TABLE IF EXISTS test_table");
myquery(rc); myquery(rc);
mysql_close(mysql_local); mysql_close(mysql_local);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment