summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorunknown <konstantin@mysql.com>2005-08-10 17:45:42 +0400
committerunknown <konstantin@mysql.com>2005-08-10 17:45:42 +0400
commitad729777635d19c6c3b5f28c62df7aedd3ec2083 (patch)
tree39c912db4fe3b5a44b7eadee23b99f60b13eef2f /tests
parent2bd3255ebb9e48e39b9d5d84c7826edd8932d00a (diff)
downloadmariadb-git-ad729777635d19c6c3b5f28c62df7aedd3ec2083.tar.gz
Fix coding style.
Diffstat (limited to 'tests')
-rw-r--r--tests/mysql_client_test.c26
1 files changed, 16 insertions, 10 deletions
diff --git a/tests/mysql_client_test.c b/tests/mysql_client_test.c
index fad36bf8c38..15cba906f6b 100644
--- a/tests/mysql_client_test.c
+++ b/tests/mysql_client_test.c
@@ -13893,10 +13893,10 @@ static void test_bug12001()
MYSQL *mysql_local;
MYSQL_RES *result;
const char *query= "DROP TABLE IF EXISTS test_table;"
- "CREATE TABLE test_table(id INT);"
- "INSERT INTO test_table VALUES(10);"
- "UPDATE test_table SET id=20 WHERE id=10;"
- "SELECT * FROM test_table;"
+ "CREATE TABLE test_table(id INT);"
+ "INSERT INTO test_table VALUES(10);"
+ "UPDATE test_table SET id=20 WHERE id=10;"
+ "SELECT * FROM test_table;"
"INSERT INTO non_existent_table VALUES(11);";
int rc, res;
@@ -13911,7 +13911,9 @@ static void test_bug12001()
/* Create connection that supports multi statements */
if (!mysql_real_connect(mysql_local, opt_host, opt_user,
opt_password, current_db, opt_port,
- opt_unix_socket, CLIENT_MULTI_STATEMENTS | CLIENT_MULTI_RESULTS)) {
+ opt_unix_socket, CLIENT_MULTI_STATEMENTS |
+ CLIENT_MULTI_RESULTS))
+ {
fprintf(stdout, "\n mysql_real_connect() failed");
exit(1);
}
@@ -13919,12 +13921,16 @@ static void test_bug12001()
rc= mysql_query(mysql_local, query);
myquery(rc);
- do {
- if (mysql_field_count(mysql_local) && (result= mysql_use_result(mysql_local))) {
- mysql_free_result(result);
+ do
+ {
+ if (mysql_field_count(mysql_local) &&
+ (result= mysql_use_result(mysql_local)))
+ {
+ 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");
myquery(rc);