diff options
author | unknown <jimw@mysql.com> | 2005-11-23 14:57:26 -0800 |
---|---|---|
committer | unknown <jimw@mysql.com> | 2005-11-23 14:57:26 -0800 |
commit | 0f64a6222edc0d0ded4e1b48fa428f8a7b44e67e (patch) | |
tree | a146f224908f931694d1c5b5ff20bd074f91bf5c /mysql-test/t/ps.test | |
parent | d9c7aaf23ff30675682775864c269bde84a3bc03 (diff) | |
download | mariadb-git-0f64a6222edc0d0ded4e1b48fa428f8a7b44e67e.tar.gz |
Fix result of ROW_COUNT() after 'EXECUTE prepstmt'. (Bug #14956)
mysql-test/r/ps.result:
Add new results
mysql-test/t/ps.test:
Add new test
sql/sql_parse.cc:
Don't reset row_count after processing EXECUTE statement.
Diffstat (limited to 'mysql-test/t/ps.test')
-rw-r--r-- | mysql-test/t/ps.test | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/mysql-test/t/ps.test b/mysql-test/t/ps.test index 94ee2b1ca39..cfc49bbfd41 100644 --- a/mysql-test/t/ps.test +++ b/mysql-test/t/ps.test @@ -843,3 +843,15 @@ execute stmt; deallocate prepare stmt; # End of 4.1 tests + +# +# Bug #14956: ROW_COUNT() returns incorrect result after EXECUTE of prepared +# statement +# +create table t1 (id int); +prepare ins_call from "insert into t1 (id) values (1)"; +execute ins_call; +select row_count(); +drop table t1; + +# End of 5.0 tests |