Skip to content

Commit

Permalink
test(mtr):update select_limit.test(#497)
Browse files Browse the repository at this point in the history
  • Loading branch information
shangyanwen authored and mergify[bot] committed Oct 26, 2022
1 parent 1c3d49b commit b71c0b1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions mysql-test/suite/tianmu/r/select_limit.result
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,10 @@ t1_tinyint t1_int t1_bigint t1_double t1_float t1_blob t1_text t1_char t1_varcha
0 NULL 203685477580679 -3.797693231e108 -7.40287e18 aaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaa a hello world! 2020-10-10 00:00:00
0 NULL 203685477580679 -3.797693231e108 -7.40287e18 aaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaa a hello world! 2020-10-10 00:00:00
0 NULL 203685477580680 -3.797693231e108 -7.40287e18 aaaaaaaaaaaaaaaaaaaa bbbbbbbbbbbbbbbbbbbbbbbbb b hello world! 1234-10-10 00:00:00
SELECT * FROM t1 LIMIT 0;
t1_tinyint t1_int t1_bigint t1_double t1_float t1_blob t1_text t1_char t1_varchar t1_datetime
SELECT * FROM t1 LIMIT @;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '@' at line 1
SELECT * FROM t1 LIMIT -1;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '-1' at line 1
SELECT * FROM t1 LIMIT 'a';
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''a'' at line 1
DROP DATABASE mcs_db2;
DROP DATABASE mcs_db2;
2 changes: 1 addition & 1 deletion mysql-test/suite/tianmu/t/select_group_by.test
Original file line number Diff line number Diff line change
Expand Up @@ -111,4 +111,4 @@ SELECT COUNT(*) FROM t1 WHERE t1_blob IS NOT NULL OR t1_tinyint IS NULL GROUP BY
--error 1054
SELECT COUNT(*) FROM t1 GROUP BY t1_tinyint, t1_int, t1_bigint HAVING t1_char = 'b';
#Clean up
DROP DATABASE IF EXISTS db1;
DROP DATABASE IF EXISTS db1;
2 changes: 1 addition & 1 deletion mysql-test/suite/tianmu/t/select_limit.test
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,4 @@ SELECT * FROM t1 LIMIT -1;
SELECT * FROM t1 LIMIT 'a';

# Clean UP
DROP DATABASE mcs_db2;
DROP DATABASE mcs_db2;

0 comments on commit b71c0b1

Please sign in to comment.