New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sysdate function returns string instead of date if params are defined #5060
Comments
Why are you using sysdate instead of date? |
Hi, I'm doing an insert via SQL and i want the current date to be used without me needing to specify the date as string from the outside. Thanks, |
Ok, so why don't use |
Because i want it in UTC for example, or any other timezone, and i don't want the same format / timezone for all the tables in the DB (thus alter database dateformat "dd MMMM yyyy" is not an option) If format / timezone manipulation should be done outside of the scope of the function, then it should't receive params at all. |
It makes no sense calling |
Hi,
When calling the sysdate function without params, a property of type datetime is created with the default date format.
However - when providing a custom date format and / or timezone, the function returns a string.
I would expect that the function will return date even when we pass params - this behavior is giving us a headache since the datatype in the database is not consistent. It should be datetime regardless if params are sent or not.
Thanks,
Moti.
The text was updated successfully, but these errors were encountered: