Subject Re: Problem with query parameter
Author emb_blaster
another way:

select * from TABLE
where (FIELD = cast(:param as TypeFIELD)) or
(cast(:param as TypeFIELD) is null)

but well, it is more complex and still donĀ“t use any index... :(