[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-2409) Oracle incorrect SQL causes ORA-00907: missing right parenthesis
Yajun Shi (JIRA)
noreply at atlassian.com
Thu Apr 5 14:37:04 EDT 2007
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-2409?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_26636 ]
Yajun Shi commented on HHH-2409:
--------------------------------
We just did some research on whether the databases that Hibernate currently supports accept keyword "AS" in front of a defined correlation name in the "FROM ... WHERE" clause.
The databases assessed include
DB2
PostgresSQL
MySQL
Oracle 9i/10g
Sybase
Sybase Anywhere
Microsoft SQL Server
SAP DB
Informix
HypersonicSQL
Ingres
Progress-92
Mckoi SQL
Interbase
Pointbase
FrontBase
Firebird
Oracle 9i/10g doesn't accept keyword "AS" in this case. Others accept it as an optional term.
As a result, we'd like to suggest the patch be applied.
Yajun Shi
SourceLabs - http://www.sourcelabs.com
Dependable Open Source Systems
> Oracle incorrect SQL causes ORA-00907: missing right parenthesis
> ----------------------------------------------------------------
>
> Key: HHH-2409
> URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-2409
> Project: Hibernate3
> Issue Type: Bug
> Affects Versions: 3.2.2
> Environment: Hibernate version 3.2.2ga (also reproduced in 3.2.1ga and 3.2.0ga)
> Database: Oracle Database 10.2 XE
> Reporter: Greg Till
> Priority: Critical
>
> Hibernate incorrectly inserts the "AS" keyword when aliasing a table name on Oracle.
> Oracle reports this as a missing parenthesis error.
> See forum post http://forum.hibernate.org/viewtopic.php?p=2340268#2340268 for more details.
--
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