summaryrefslogtreecommitdiff
path: root/mysql-test/r/ps.result
diff options
context:
space:
mode:
authorunknown <ramil@mysql.com>2005-03-02 20:00:48 +0400
committerunknown <ramil@mysql.com>2005-03-02 20:00:48 +0400
commit737f7292b4cb10c1f820f932e7ff3a6fd63f44ca (patch)
tree2fe69013e0996376ef8d18f10e68da660b965e14 /mysql-test/r/ps.result
parent26f75ffc83e39ee915e8d4973955c950ddabb35b (diff)
downloadmariadb-git-737f7292b4cb10c1f820f932e7ff3a6fd63f44ca.tar.gz
a fix for --ps-protocol (bug #6089: FOUND_ROWS returns wrong values when no table/view is used)
sql/sql_union.cc: a fix for --ps-protocol (bug #6089: FOUND_ROWS returns wrong values when no table/view is used) Don't touch options as itit's not needed.
Diffstat (limited to 'mysql-test/r/ps.result')
-rw-r--r--mysql-test/r/ps.result12
1 files changed, 12 insertions, 0 deletions
diff --git a/mysql-test/r/ps.result b/mysql-test/r/ps.result
index 4e1e75f1b33..89c369a51e8 100644
--- a/mysql-test/r/ps.result
+++ b/mysql-test/r/ps.result
@@ -482,3 +482,15 @@ execute stmt;
pnum
deallocate prepare stmt;
drop table t1, t2;
+prepare stmt from "SELECT SQL_CALC_FOUND_ROWS 'foo' UNION SELECT 'bar' LIMIT 0";
+execute stmt;
+foo
+SELECT FOUND_ROWS();
+FOUND_ROWS()
+2
+execute stmt;
+foo
+SELECT FOUND_ROWS();
+FOUND_ROWS()
+2
+deallocate prepare stmt;