[hibernate-issues] [Hibernate-JIRA] Commented: (EJB-403) QueryTest - Native Query for Update using alias causes failure

Gail Badner (JIRA) noreply at atlassian.com
Fri Feb 20 18:09:38 EST 2009


    [ http://opensource.atlassian.com/projects/hibernate/browse/EJB-403?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=32480#action_32480 ] 

Gail Badner commented on EJB-403:
---------------------------------

The following works for Sybase ASE 15:
    update item set descr = 'Logitech Mouse' from item i where i.name = 'Mouse'

Syntax for Sybase update command is at:
http://infocenter.sybase.com/help/index.jsp?topic=/com.sybase.infocenter.dc36272.1502/html/commands/X54355.htm

> QueryTest - Native Query for Update using alias causes failure
> --------------------------------------------------------------
>
>                 Key: EJB-403
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/EJB-403
>             Project: Hibernate Entity Manager
>          Issue Type: Bug
>          Components: EntityManager
>         Environment: PostgreSQL 8.2.3/Sybase ASE 15 and Entity Manager 
>            Reporter: Juraci Paixao Krohling
>            Assignee: Emmanuel Bernard
>         Attachments: QueryTest.diff
>
>
> Even though it says in documentation that it supports table aliases in "update" clauses[1], the below test fails when using it. Removing the table alias is enough to make it successful.
> org.hibernate.ejb.test.QueryTest#testUpdateQuery
> [1] http://www.postgresql.org/docs/8.2/interactive/sql-update.html
> It also affects Sybase.

-- 
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