]
Adam Warski resolved HHH-4787.
------------------------------
Assignee: Adam Warski
Resolution: Fixed
Fix Version/s: 4.0.0.Alpha3
3.6.4
AuditProperty.isNull() doesn't generate "tab.col is
null" SQL clause as expected
--------------------------------------------------------------------------------
Key: HHH-4787
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-4787
Project: Hibernate Core
Issue Type: Bug
Components: envers
Affects Versions: 3.3.0.GA
Environment: Hibernate 3.3.0.GA, Envers 1.2.2, HSQLDB Database
Reporter: Eric Citaire
Assignee: Adam Warski
Priority: Critical
Fix For: 3.6.4, 4.0.0.Alpha3
AuditProperty.isNull() generate a SQL condition like this :
"tab.col=?"
where the bind variable is mapped to a null value.
This doesn't work : most database engines will return false in every case.
It should use the "is null" test instead :
"tab.col is null"
http://en.wikipedia.org/wiki/SQL#Null_and_Three-Valued_Logic_.283VL.29
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: