I have a query in Oracle that looks (in part) like this:
where Doc3.clinicalDate >= ml.convert_date_to_id(:DateBegin)
and Doc3.clinicalDate < ml.convert_date_to_id(:DateEnd)
When I put this query in SSRS and set up the report and dataset parameters, it works fine. However, if I paste it into Oracle SQL Developer, it pops up a window asking me to "Enter Binds". When I put in "date '2011-06-01'", I get the error "ORA-01858: a non-numeric character was found where a numeric was expected". How do I pass it the date in a format it will actually understand? Thanks.