Commit e7036596 authored by pem@mysql.comhem.se's avatar pem@mysql.comhem.se

Changed C++-ism into C in client_test.c.

parent 3afd1939
...@@ -12065,6 +12065,7 @@ static void test_truncation() ...@@ -12065,6 +12065,7 @@ static void test_truncation()
MYSQL_STMT *stmt; MYSQL_STMT *stmt;
const char *stmt_text; const char *stmt_text;
int rc; int rc;
uint bind_count;
MYSQL_BIND *bind_array, *bind; MYSQL_BIND *bind_array, *bind;
myheader("test_truncation"); myheader("test_truncation");
...@@ -12112,7 +12113,7 @@ static void test_truncation() ...@@ -12112,7 +12113,7 @@ static void test_truncation()
check_execute(stmt, rc); check_execute(stmt, rc);
rc= mysql_stmt_execute(stmt); rc= mysql_stmt_execute(stmt);
check_execute(stmt, rc); 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 **************/ /*************** Fill in the bind structure and bind it **************/
bind_array= malloc(sizeof(MYSQL_BIND) * bind_count); bind_array= malloc(sizeof(MYSQL_BIND) * bind_count);
......
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