diff options
author | Davi Arnaut <Davi.Arnaut@Sun.COM> | 2009-05-23 10:19:58 -0300 |
---|---|---|
committer | Davi Arnaut <Davi.Arnaut@Sun.COM> | 2009-05-23 10:19:58 -0300 |
commit | d30375be3960ff8c84054a95583c475a90e3187b (patch) | |
tree | 18e787409b0269cad75b7b03cc7ef2ebb06f8ad5 /tests | |
parent | e2aad850ed5343ad1fdfc83f7b09879a218e578a (diff) | |
download | mariadb-git-d30375be3960ff8c84054a95583c475a90e3187b.tar.gz |
Workaround a compiler that does not support certain C99 features for C code.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/mysql_client_test.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/mysql_client_test.c b/tests/mysql_client_test.c index e56d1e9f506..b836293442a 100644 --- a/tests/mysql_client_test.c +++ b/tests/mysql_client_test.c @@ -17744,8 +17744,8 @@ static void test_bug43560(void) MYSQL_STMT *stmt= 0; MYSQL_BIND bind; my_bool is_null= 0; - const uint BUFSIZE= 256; - char buffer[BUFSIZE]; + char buffer[256]; + const uint BUFSIZE= sizeof(buffer); const char* values[] = {"eins", "zwei", "drei", "viele", NULL}; const char insert_str[] = "INSERT INTO t1 (c2) VALUES (?)"; unsigned long length; |