diff options
author | Sergei Golubchik <sergii@pisem.net> | 2013-08-13 13:35:36 +0200 |
---|---|---|
committer | Sergei Golubchik <sergii@pisem.net> | 2013-08-13 13:35:36 +0200 |
commit | fcf87600a2d7ae03f7bda16c2f16cdec980d2a56 (patch) | |
tree | 0dd158f601c1b38f1b5e80eab137cd406c4499cb /tests | |
parent | a6617eb341c9598f1247e8ddc5c66b7bec55129d (diff) | |
download | mariadb-git-fcf87600a2d7ae03f7bda16c2f16cdec980d2a56.tar.gz |
MDEV-4865 Change related to --log option/variable was merged partially
Complete the merge of magne.mahre@oracle.com-20101102115354-vxcaxminmzglzalk
(WL#5185 Remove deprecated 5.1 features)
Diffstat (limited to 'tests')
-rw-r--r-- | tests/mysql_client_fw.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/mysql_client_fw.c b/tests/mysql_client_fw.c index eb88be5c0e8..6dcfb697dbe 100644 --- a/tests/mysql_client_fw.c +++ b/tests/mysql_client_fw.c @@ -275,7 +275,9 @@ static my_bool check_have_innodb(MYSQL *conn) int rc; my_bool result; - rc= mysql_query(conn, "show variables like 'have_innodb'"); + rc= mysql_query(conn, + "SELECT (support = 'YES' or support = 'DEFAULT' or support = 'ENABLED') " + "AS `TRUE` FROM information_schema.engines WHERE engine = 'innodb'"); myquery(rc); res= mysql_use_result(conn); DIE_UNLESS(res); @@ -283,7 +285,7 @@ static my_bool check_have_innodb(MYSQL *conn) row= mysql_fetch_row(res); DIE_UNLESS(row); - result= strcmp(row[1], "YES") == 0; + result= strcmp(row[1], "1") == 0; mysql_free_result(res); return result; } |