1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

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.
This commit is contained in:
unknown
2005-03-02 20:00:48 +04:00
parent 26f75ffc83
commit 737f7292b4
3 changed files with 34 additions and 19 deletions

View File

@ -485,3 +485,14 @@ execute stmt;
deallocate prepare stmt;
drop table t1, t2;
#
# Bug #6089: FOUND_ROWS returns wrong values when no table/view is used
#
prepare stmt from "SELECT SQL_CALC_FOUND_ROWS 'foo' UNION SELECT 'bar' LIMIT 0";
execute stmt;
SELECT FOUND_ROWS();
execute stmt;
SELECT FOUND_ROWS();
deallocate prepare stmt;