Skip to content
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

SELECT ... STRAIGHT_JOIN ... USING ... returns syntax error #54162

Closed
dveeden opened this issue Jun 21, 2024 · 0 comments · Fixed by #54164
Closed

SELECT ... STRAIGHT_JOIN ... USING ... returns syntax error #54162

dveeden opened this issue Jun 21, 2024 · 0 comments · Fixed by #54164

Comments

@dveeden
Copy link
Contributor

dveeden commented Jun 21, 2024

Bug Report

1. Minimal reproduce step (Required)

SELECT 1 FROM (SELECT 1 x) a STRAIGHT_JOIN (SELECT 1 x) b USING (x);

2. What did you expect to see? (Required)

mysql-8.4.0> SELECT 1 FROM (SELECT 1 x) a STRAIGHT_JOIN (SELECT 1 x) b USING (x);
+---+
| 1 |
+---+
| 1 |
+---+
1 row in set (0.00 sec)

3. What did you see instead (Required)

mysql-8.0.11-TiDB-v8.1.0> SELECT 1 FROM (SELECT 1 x) a STRAIGHT_JOIN (SELECT 1 x) b USING (x);
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your TiDB version for the right syntax to use line 1 column 63 near "USING (x)" 

4. What is your TiDB version? (Required)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants