What does Clover pass to the database when using equality (=) with null values in the clover fields? I am trying to issue a join in which field1 and field2 can have a value or could be null. In my case, field1 is a decimal and field2 is a date. I am trying to issue the query with the following format:
select * from table1
where (field1 = ? or field1 is null)
and (field2 = ? or field2 is null);
This works fine in sqlplus but does not work in clover. I do not get an error, however, I do not return any joined rows. I know I could use nvl however that requires that I maintain duplicate fields with default values. I do not want to default the value of field1 and field2 because they will get inserted into the database in a different step and they are nullable fields. Is there a way to see the exact query clover executes against the database? I am running clover via the eclipse GUI.