I have a function that returns a date (actual a timestamp, date+time).
In the table it looks like this, “2010-09-05 17:33:00”.
when i call my function from an sql script like,
select my_package.my_function('2010-09-05')
from dual.
I’ll get time in the result.
But if I run the same in a test window I’ll only receive the date and not the time.
How could this be?
you are seeing the effect of the NLS_DATE_FORMAT setting. set that as required. eg:
to see the output properly.
or TO_CHAR the output.