H2Dialect wrongly returns 0 and 1 for boolean literals whereas it should return true and false as H2 supports booleans natively. Interestingly, this pops up only when using a function that returns a boolean i.e. select 1=true works but select 1=exists(select 1) fails. |