diff options
author | unknown <jimw@mysql.com> | 2005-08-10 18:32:17 -0700 |
---|---|---|
committer | unknown <jimw@mysql.com> | 2005-08-10 18:32:17 -0700 |
commit | c1a7cfb7d5553ec9d1d2e993e29287b501284129 (patch) | |
tree | 8f7e0b27237aaa9d4b903707652d1074c68247f1 /mysql-test/t/metadata.test | |
parent | 888a931432cfe4f35744226563aafd5a1545650d (diff) | |
download | mariadb-git-c1a7cfb7d5553ec9d1d2e993e29287b501284129.tar.gz |
Fix mysql_info() returning bad data in the results of a multi-statement
query that mixed statements that do and do not return info. (Bug #11688)
mysql-test/r/metadata.result:
Add new results
mysql-test/t/metadata.test:
Add new regression test
sql-common/client.c:
Clear mysql->info in free_old_query()
Diffstat (limited to 'mysql-test/t/metadata.test')
-rw-r--r-- | mysql-test/t/metadata.test | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/mysql-test/t/metadata.test b/mysql-test/t/metadata.test index b4edd15f5ef..65338448555 100644 --- a/mysql-test/t/metadata.test +++ b/mysql-test/t/metadata.test @@ -49,4 +49,16 @@ drop table t1; --disable_metadata +# +# Bug #11688: Bad mysql_info() results in multi-results +# +--enable_info +delimiter //; +create table t1 (i int); +insert into t1 values (1),(2),(3); +select * from t1 where i = 2; +drop table t1;// +delimiter ;// +--disable_info + # End of 4.1 tests |