mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 12:02:42 +01:00
Makng sure that LIMIT 0 works in this case to:
select sql_calc_found_rows * from table limit 0; It does ...
This commit is contained in:
parent
10de2720aa
commit
9705257270
2 changed files with 7 additions and 0 deletions
|
@ -178,4 +178,9 @@ titre numeropost maxnumrep
|
|||
SELECT FOUND_ROWS();
|
||||
FOUND_ROWS()
|
||||
2
|
||||
SELECT SQL_CALC_FOUND_ROWS * FROM t1 LIMIT 0;
|
||||
titre numeropost maxnumrep
|
||||
SELECT FOUND_ROWS();
|
||||
FOUND_ROWS()
|
||||
3
|
||||
drop table t1;
|
||||
|
|
|
@ -88,4 +88,6 @@ SELECT SQL_CALC_FOUND_ROWS 1 FROM (SELECT 1) LIMIT 0;
|
|||
SELECT FOUND_ROWS();
|
||||
SELECT SQL_CALC_FOUND_ROWS * FROM t1 WHERE numeropost > 1 LIMIT 0;
|
||||
SELECT FOUND_ROWS();
|
||||
SELECT SQL_CALC_FOUND_ROWS * FROM t1 LIMIT 0;
|
||||
SELECT FOUND_ROWS();
|
||||
drop table t1;
|
||||
|
|
Loading…
Reference in a new issue