Jet driver does not return correct results when HQL where clause contains a boolean value

Description

When a HQL query contain a condition that is mapped to a boolean value the generate SQL query is incorrect. For example
"from Account where locked = true" is translated into "select ....... from Acount where locked=1". When using access it should be "..... where locked=-1". It only fails with with the ASTQueryTranslatorFactory. The ClassicQueryTranslatorFactory works as expected.

Fix is trivial. Add override for ToBooleanValueString to JetDialect that creates the correct values for the SQL statement.

Environment

None

Activity

Alex Zaytsev 
May 19, 2017 at 2:00 AM

Fixed

Details

Assignee

Reporter

Labels

Components

Fix versions

Affects versions

Priority

Who's Looking?

Open Who's Looking?
Created January 24, 2012 at 8:19 PM
Updated May 19, 2017 at 2:00 AM
Resolved May 19, 2017 at 2:00 AM
Who's Looking?