revision-id: 5bba69f816129dff8f85e7e87c91b90e2d34b8e1 (mariadb-10.3.6-49-g5bba69f) parent(s): b4ee699a89ccf4f3cf52a18236e821f0d8466e8d author: Igor Babaev committer: Igor Babaev timestamp: 2018-04-25 18:22:56 -0700 message: Fixed a compiler error --- tests/mysql_client_test.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/mysql_client_test.c b/tests/mysql_client_test.c index 0140a63..fd33648 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; "