[hibernate-issues] [Hibernate-JIRA] Resolved: (EJB-404) QueryTest - PostgreSQL - "ERROR: operator does not exist: character varying = bytea"
Juraci Paixao Krohling (JIRA)
noreply at atlassian.com
Wed Jan 14 08:07:39 EST 2009
[ http://opensource.atlassian.com/projects/hibernate/browse/EJB-404?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Juraci Paixao Krohling resolved EJB-404.
----------------------------------------
Resolution: Fixed
Revisions 15776, 15777 and 15778 (branches v3_2_1_GA_CP, v3_3_2_GA_CP and trunk)
> QueryTest - PostgreSQL - "ERROR: operator does not exist: character varying = bytea"
> ------------------------------------------------------------------------------------
>
> Key: EJB-404
> URL: http://opensource.atlassian.com/projects/hibernate/browse/EJB-404
> Project: Hibernate Entity Manager
> Issue Type: Patch
> Components: EntityManager
> Environment: PostgreSQL, DB2 and Entity Manager
> Reporter: Juraci Paixao Krohling
> Assignee: Juraci Paixao Krohling
> Fix For: 3.4.0.GA, 3.4.1
>
> Attachments: QueryTest_2.diff, QueryTest_3.diff
>
>
> Test org.hibernate.ejb.test.QueryTest#testIsNull fails due to this query:
> select i from Item i where (i.descr is null and :descr is null) or i.descr = :descr
> When changing the query to what it reads below, it works properly:
> select i from Item i where i.descr = :descr or (i.descr is null and :descr is null)
> As this happened only with PostgreSQL, I assume this is an issue with either the driver or with the database itself. Will dig into pgsql's site to find out more about this issue.
--
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