I want to execute a simple function in Oracle. The signature is defined as follows:
CREATE OR REPLACE FUNCTION NewCaseListForValidation
(
It's best not to rely on particular value in NLS_PARAMETERS settings, cause this will make your function break in the env with another NLS_DATE_FORMAT.
I'd explicitly specify date formatting in your function as suggested in the answer above
exec :rc := newcaselistforvalidation(to_date('2010-01-01','YYYY-MM-DD'),to_date('2011-01-01','YYYY-MM-DD'),100);