Can't use USING with STRAIGHT_JOIN

Bug #1649273 reported by 5lava
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Percona Server moved to https://jira.percona.com/projects/PS
Invalid
Undecided
Unassigned

Bug Description

Hello,
While migrating from MariaDB to Percona XtraDB Cluster I found out that USING can't be used with STRAIGHT_JOIN.
For example:

select * from A straight_join B using(id); -- syntax error
select * from A straight_join B on A.id=B.id; -- works fine
select * from A join B on A.id=B.id; -- works fine
select * from A join B using(id); -- works fine

Tags: upstream
Revision history for this message
5lava (5lava) wrote :

5.7.14-8, wsrep_26.17

Revision history for this message
Kenn Takara (kenn-takara) wrote :

select * from A straight_join B using(id);
  fails on PXC 5.6.34
  fails on PXC 5.7.16
  fails on PS 5.7.17

From the docs

  https://dev.mysql.com/doc/refman/5.7/en/join.html

According to the syntax, USING can't be used with STRAIGHT_JOIN.

moving upstream.

affects: percona-xtradb-cluster → percona-server
tags: added: upstream
Revision history for this message
Muhammad Irfan (muhammad-irfan) wrote :

The syntax rule is described in manual https://dev.mysql.com/doc/refman/5.7/en/join.html
Syntax with STRAIGHT_JOIN allows ON condition by not USING clause. To summarize, It's expected behavior.

Changed in percona-server:
status: New → Invalid
Revision history for this message
Shahriyar Rzayev (rzayev-sehriyar) wrote :

Percona now uses JIRA for bug reports so this bug report is migrated to: https://jira.percona.com/browse/PS-3616

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.