-
Notifications
You must be signed in to change notification settings - Fork 5.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
inconsistent behavior of Found_Rows
and sql_calc_found_rows
#8235
Labels
challenge-program
help wanted
Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.
severity/moderate
sig/execution
SIG execution
type/compatibility
Comments
XuHuaiyu
added
type/bug
The issue is confirmed as a bug.
help wanted
Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.
sig/execution
SIG execution
labels
Nov 8, 2018
And this one, Mysql returns error, TiDB doesn't: select * from (SELECT SQL_CALC_FOUND_ROWS * FROM t1 UNION SELECT * FROM t2 order by 1 LIMIT 2) t order by 1;
select found_rows(); |
And this one, MySQL returns error, TiDB doesn't: (SELECT * FROM t1) UNION all (SELECT SQL_CALC_FOUND_ROWS * FROM t2) LIMIT 1; |
And this one: CREATE TABLE t1 (a INT) ENGINE=MEMORY;
CREATE TABLE t2 (a INT) ENGINE=MEMORY;
INSERT INTO t2 VALUES (1);
SELECT SQL_CALC_FOUND_ROWS * FROM t1 UNION ALL SELECT * FROM t2;
SELECT FOUND_ROWS(); |
@morgo Can we create a new issue for |
I have created #21786 to replace this issue. I am going to close this now. |
Please edit this comment or add a new comment to complete the following informationNot a bug
Recategorized as a feature request |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
challenge-program
help wanted
Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.
severity/moderate
sig/execution
SIG execution
type/compatibility
Description
Bug Report
Please answer these questions before submitting your issue. Thanks!
tidb-server -V
or runselect tidb_version();
on TiDB)?SIG slack channel
#sig-exec
Score
Mentor
The text was updated successfully, but these errors were encountered: