Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
5601da7a
Commit
5601da7a
authored
Nov 19, 2002
by
Sinisa@sinisa.nasamreza.org
Browse files
Options
Browse Files
Download
Plain Diff
Merge sinisa@work.mysql.com:/home/bk/mysql-4.1
into sinisa.nasamreza.org:/mnt/work/mysql-4.1
parents
51f413ec
20e100d3
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
1 deletion
+8
-1
mysql-test/r/select_found.result
mysql-test/r/select_found.result
+5
-0
mysql-test/t/select_found.test
mysql-test/t/select_found.test
+2
-0
sql/sql_select.cc
sql/sql_select.cc
+1
-1
No files found.
mysql-test/r/select_found.result
View file @
5601da7a
...
@@ -183,4 +183,9 @@ titre numeropost maxnumrep
...
@@ -183,4 +183,9 @@ titre numeropost maxnumrep
SELECT FOUND_ROWS();
SELECT FOUND_ROWS();
FOUND_ROWS()
FOUND_ROWS()
3
3
SELECT SQL_CALC_FOUND_ROWS * FROM t1 ORDER BY numeropost LIMIT 0;
titre numeropost maxnumrep
SELECT FOUND_ROWS();
FOUND_ROWS()
3
drop table t1;
drop table t1;
mysql-test/t/select_found.test
View file @
5601da7a
...
@@ -90,4 +90,6 @@ SELECT SQL_CALC_FOUND_ROWS * FROM t1 WHERE numeropost > 1 LIMIT 0;
...
@@ -90,4 +90,6 @@ SELECT SQL_CALC_FOUND_ROWS * FROM t1 WHERE numeropost > 1 LIMIT 0;
SELECT
FOUND_ROWS
();
SELECT
FOUND_ROWS
();
SELECT
SQL_CALC_FOUND_ROWS
*
FROM
t1
LIMIT
0
;
SELECT
SQL_CALC_FOUND_ROWS
*
FROM
t1
LIMIT
0
;
SELECT
FOUND_ROWS
();
SELECT
FOUND_ROWS
();
SELECT
SQL_CALC_FOUND_ROWS
*
FROM
t1
ORDER
BY
numeropost
LIMIT
0
;
SELECT
FOUND_ROWS
();
drop
table
t1
;
drop
table
t1
;
sql/sql_select.cc
View file @
5601da7a
...
@@ -324,7 +324,7 @@ JOIN::prepare(TABLE_LIST *tables_init,
...
@@ -324,7 +324,7 @@ JOIN::prepare(TABLE_LIST *tables_init,
this
->
group
=
group_list
!=
0
;
this
->
group
=
group_list
!=
0
;
row_limit
=
((
select_distinct
||
order
||
group_list
)
?
HA_POS_ERROR
:
row_limit
=
((
select_distinct
||
order
||
group_list
)
?
HA_POS_ERROR
:
unit
->
select_limit_cnt
);
unit
->
select_limit_cnt
);
do_send_rows
=
(
row_limi
t
)
?
1
:
0
;
do_send_rows
=
(
unit
->
select_limit_cn
t
)
?
1
:
0
;
this
->
unit
=
unit
;
this
->
unit
=
unit
;
#ifdef RESTRICTED_GROUP
#ifdef RESTRICTED_GROUP
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment