Hey again,
I have a question regarding some odd behavior I can't seem to find on the forums.
I'm using DB2 via a native JDBC connection and run a sql string like
Anyway, I can pretty easily get around the second one by just using java.sql.date parameters, but I'm trying to test for null params. Both scenarios won't let me generate the report and return SQL errors. Is there a special way I should be testing for null on DB2? Is it a bug? Can you not use parameters in DB2 functions?Code:select * from myTable where ${myParam} is not null or select * from myTable where myTable.myDateField > Date(${myParam})


Reply With Quote

