diff options
author | unknown <pem@mysql.comhem.se> | 2004-12-16 12:10:27 +0100 |
---|---|---|
committer | unknown <pem@mysql.comhem.se> | 2004-12-16 12:10:27 +0100 |
commit | 92022992a29ec4c4ead2df833238df2add27252f (patch) | |
tree | 503100b08c548879dd1a80e14e12e802f307a996 /tests | |
parent | eaec00b19b0dfe26bbe4297edfea04e277af27ed (diff) | |
download | mariadb-git-92022992a29ec4c4ead2df833238df2add27252f.tar.gz |
Changed C++-ism into C in client_test.c.
tests/client_test.c:
Moved variable declaration to the beginning of the block.
(It's a C file, not C++)
Diffstat (limited to 'tests')
-rw-r--r-- | tests/client_test.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/client_test.c b/tests/client_test.c index e63580ce031..b00be2d35b8 100644 --- a/tests/client_test.c +++ b/tests/client_test.c @@ -12065,6 +12065,7 @@ static void test_truncation() MYSQL_STMT *stmt; const char *stmt_text; int rc; + uint bind_count; MYSQL_BIND *bind_array, *bind; myheader("test_truncation"); @@ -12112,7 +12113,7 @@ static void test_truncation() check_execute(stmt, rc); rc= mysql_stmt_execute(stmt); check_execute(stmt, rc); - uint bind_count= (uint) mysql_stmt_field_count(stmt); + bind_count= (uint) mysql_stmt_field_count(stmt); /*************** Fill in the bind structure and bind it **************/ bind_array= malloc(sizeof(MYSQL_BIND) * bind_count); |