[hibernate-issues] [Hibernate-JIRA] Created: (HHH-2591) MySQL 5.0.12+ JOIN Syntax Changed

Brian Rozmierski (JIRA) noreply at atlassian.com
Sun Apr 29 23:21:04 EDT 2007


MySQL 5.0.12+ JOIN Syntax Changed
---------------------------------

                 Key: HHH-2591
                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-2591
             Project: Hibernate3
          Issue Type: Bug
          Components: query-hql, query-sql
    Affects Versions: 3.2.3, 3.2.1
         Environment: Tested with Hibernate Core 3.2.1 and 3.2.3, MySQL 5.0.27, 5.0.33, 5.0.37
            Reporter: Brian Rozmierski
            Priority: Critical


With 5.0.12 MySQL changed the JOIN syntax to be SQL:2003 compliant. (See MySQL 5.0.12 Release Notes at http://dev.mysql.com/doc/refman/5.0/en/news-5-0-12.html and JOIN syntax information at http://dev.mysql.com/doc/refman/5.0/en/join.html for more information)

Previous to this change the following query was valid:

SELECT * FROM t1, t2 JOIN t3 ON (t1.i1 = t3.i3);

Now it must be written as:

SELECT * FROM (t1, t2) JOIN t3 ON (t1.i1 = t3.i3);
or
SELECT * FROM t1 JOIN t2 JOIN t3 ON (t1.i1 = t3.i3);

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the hibernate-issues mailing list