https://hibernate.atlassian.net/browse/HHH-11073 this follows up on https://bugzilla.redhat.com/show_bug.cgi?id=1337337 which doesn't fixes issue on MySQL Description of problem: Hibernate converts a query like: select cast( true as boolean ) ... to SQL: select cast ( 1 as bit ) .... Instead, Hibernate should be converted to SQL: select cast ( 1 as char ) ....
Hibernate ORM community 4.2 branch commits: test: https://github.com/hibernate/hibernate-orm/commit/efa7a421a35c1589768e41743a39b849797fea46 fix: https://github.com/hibernate/hibernate-orm/commit/1784724566235f4467873a62bd8c692d695421d7 Internal 4.2 branch commits: test: http://git.app.eng.bos.redhat.com/git/hibernate/hibernate-core.git/commit/?h=4.2&id=efa7a421a35c1589768e41743a39b849797fea46 fix: http://git.app.eng.bos.redhat.com/git/hibernate/hibernate-core.git/commit/?h=4.2&id=1784724566235f4467873a62bd8c692d695421d7
Verified with EAP 6.4.12.CP.CR1
Retroactively bulk-closing issues from released EAP 6.4 cumulative patches.