summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/mysql_client_test.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/mysql_client_test.c b/tests/mysql_client_test.c
index 0140a630e89..fd336481439 100644
--- a/tests/mysql_client_test.c
+++ b/tests/mysql_client_test.c
@@ -20295,9 +20295,10 @@ static void test_bulk_autoinc()
static void print_metadata(MYSQL_RES *rs_metadata, int num_fields)
{
+ int i;
MYSQL_FIELD *fields= mysql_fetch_fields(rs_metadata);
- for (int i = 0; i < num_fields; ++i)
+ for (i = 0; i < num_fields; ++i)
{
mct_log(" - %d: name: '%s'/'%s'; table: '%s'/'%s'; "
"db: '%s'; catalog: '%s'; length: %d; max_length: %d; "