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/r/metadata.result | |
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/r/metadata.result')
-rw-r--r-- | mysql-test/r/metadata.result | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/mysql-test/r/metadata.result b/mysql-test/r/metadata.result index 8f25e6b7f4a..6297f9cdcb5 100644 --- a/mysql-test/r/metadata.result +++ b/mysql-test/r/metadata.result @@ -85,3 +85,14 @@ def aaa 1 1 8 20 1 N 32769 0 63 1 1 drop table t1; +create table t1 (i int); +insert into t1 values (1),(2),(3); +select * from t1 where i = 2; +drop table t1;// +affected rows: 0 +affected rows: 3 +info: Records: 3 Duplicates: 0 Warnings: 0 +i +2 +affected rows: 1 +affected rows: 0 |