[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-2591) MySQL 5.0.12+ JOIN Syntax Changed
Brian Rozmierski (JIRA)
noreply at atlassian.com
Sun Apr 29 23:21:04 EDT 2007
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-2591?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_26825 ]
Brian Rozmierski commented on HHH-2591:
---------------------------------------
I tried to do some digging through the source and while some changes, perhaps, in/around org.hibernate.sql.JoinFragment may resolve some of the issues, the HQL parsed queries also require QueryJoinFragment to reflect these changes. While I can override the JoinFragment used via the Dialect, I can't seem to be able to override the QueryJoinFragment without compiling a custom build of hibernate.
> 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.1, 3.2.3
> 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