This Bugzilla instance is deprecated, and most Eclipse projects now use GitHub or Eclipse GitLab. Please see the deprecation plan for details.
Bug 275449 - IS NOT NULL is translated into NOT(IS NULL)
Summary: IS NOT NULL is translated into NOT(IS NULL)
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P5 normal (vote)
Target Milestone: ---   Edit
Assignee: Nobody - feel free to take it CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-08 08:18 EDT by Markus KARG CLA
Modified: 2022-06-09 10:28 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Markus KARG CLA 2009-05-08 08:18:19 EDT
Build ID: N/A

Steps To Reproduce:
JPA QL defines the syntax "x IS NOT NULL" to check for NULL.

SQL defines the exactly same syntax "x IS NOT NULL" to check for NULL.

So one would expect that "x IS NOT NULL" gets translated into "x IS NOT NULL".

But the actually created SQL is "NOT(x IS NULL)".

This is a bit strange, because "NOT(x IS NULL)" is harder to read than "x IS NOT NULL" and in fact is more bytes than the direct translation "x IS NOT NULL".

So I rate this as a bug.

More information:
Comment 1 Tom Ware CLA 2009-05-13 14:36:36 EDT
Setting Target Milestone and Priority.  See http://wiki.eclipse.org/EclipseLink/Development/Bugs/Guidelines for information about what the settings mean.
Comment 2 James Sutherland CLA 2012-02-06 14:28:56 EST
Fixed with Hermes
Comment 3 James Sutherland CLA 2012-04-11 10:50:22 EDT
Fixed in 2.4
Comment 4 Eclipse Webmaster CLA 2022-06-09 10:28:49 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink