Answer the question
In order to leave comments, you need to log in
Specify types for hardcoded select?
Postgresql database
I have sql generated dynamically
And in order not to put questions in where conditions, I just wanted to
cross join (
select null as grainGroupCode,
null as grainGroupName,
null as typeProductCode,
null as typeProductName,
null as date1
) filters
and (f.grainGroupCode is not null or
ggtpt.grain_group_id = cast(f.grainGroupCode as integer))
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question