Bug 1299842 - [TEST] (6.4.x) Skip tests for HHH-10161 on Sybase
Summary: [TEST] (6.4.x) Skip tests for HHH-10161 on Sybase
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Enterprise Application Platform 6
Classification: JBoss
Component: Hibernate
Version: 6.4.6
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: CR1
: EAP 6.4.8
Assignee: Gail Badner
QA Contact: Martin Simka
URL:
Whiteboard:
Depends On:
Blocks: eap648-payload 1315479
TreeView+ depends on / blocked
 
Reported: 2016-01-19 11:39 UTC by Jan Martiska
Modified: 2017-01-17 12:36 UTC (History)
7 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2017-01-17 12:36:48 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Jan Martiska 2016-01-19 11:39:08 UTC
Tests for null value specified using javax.persistence.Parameter#getParameterType() (introduced via HHH-10161) fail on Sybase, because Sybase treats null as equal to null

That means,
insert into test values(null);
select * from test where id = null;

The SELECT will return the value added by the INSERT. This behavior is different from all other databases that we support. On other databases, you have to query whether "is null", not "= null". 

I believe this is just a database-specific behavior that Hibernate can't really do anything about, so I suggest to skip these failing tests.

Comment 1 Jan Martiska 2016-01-19 11:49:24 UTC
pull request to Hibernate: https://github.com/hibernate/hibernate-orm/pull/1227

Comment 2 Mike McCune 2016-03-28 22:38:41 UTC
This bug was accidentally moved from POST to MODIFIED via an error in automation, please see mmccune with any questions

Comment 3 Gail Badner 2016-04-13 04:16:29 UTC
Should this block the component upgrade BZ: 
https://bugzilla.redhat.com/show_bug.cgi?id=1315479 ?

Comment 5 Jiří Bílek 2016-05-06 07:26:53 UTC
Verified with EAP 6.4.8.CP.CR2.

Comment 6 Petr Penicka 2017-01-17 12:36:48 UTC
Retroactively bulk-closing issues from released EAP 6.4 cumulative patches.


Note You need to log in before you can comment on or make changes to this bug.