-
Notifications
You must be signed in to change notification settings - Fork 489
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
tidb reports syntax error while mysql does not #1127
Labels
Comments
MySQL 8.0 will return syntax error too mysql> SELECT t1.a AS a FROM ((SELECT a FROM t) AS t1);
ERROR 1064 (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
mysql> select version();
+-------------------------+
| version() |
+-------------------------+
| 8.0.22-0ubuntu0.20.04.3 |
+-------------------------+
1 row in set (0.00 sec) |
The current |
can you please give some examples? |
select * from ((select a from t) t1 join t t2); # invalid in tidb. valid in MySQL
SELECT * FROM ((SELECT a FROM t) t1); # invalid both tidb and MySQL |
12 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug Report
Please answer these questions before submitting your issue. Thanks!
If possible, provide a recipe for reproducing the error.
As MySQL, there should be no syntax error for SQL_1 and SQL_2.
SQL_1 successes, while SQL_2 fails.
3abb698
I tried to change the
SetOprStmt1
in line 8021 back toSelectStmt
, the above problem can be fixed, but there would be some test failures for set operations.The text was updated successfully, but these errors were encountered: