Maybe it was part of some initial development
(pre-translatable-bools?) that never got revisited, or maybe it was
just a "typo." All the changes were in one file. In any case, I did
search for all occurrences of that particular Constant() method to
check their sanity.
Patrick Earl
On Mon, Nov 1, 2010 at 1:46 AM, Frans Bouma <[email protected]> wrote:
>> NH-2403 [PATCH] Linq boolean constants are of wrong type (integer)
>> Tiny patch, fixes some parts of Linq for databases that don't use
>> integers for bools (like PostgreSQL).
>
> Why would you use integers for bools in the first place? The
> constant is 'bool' in the expression tree and databases which do support
> bool types (sqlserver, mysql, postgresql, access, at least one sybase flavor
> ...) can directly eat it as a parameter value. For databases which don't
> support native bool types (oracle mostly), need a conversion and this
> conversion should be like the one defined in the hibernate config file or
> through an IUserType implementation.
>
> FB
>
>