Skip to content
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

NOW() isn't recognized as a Postgresql function #413

Closed
mikehearn opened this issue Jul 30, 2022 · 1 comment · Fixed by cashapp/sqldelight#3403
Closed

NOW() isn't recognized as a Postgresql function #413

mikehearn opened this issue Jul 30, 2022 · 1 comment · Fixed by cashapp/sqldelight#3403
Labels

Comments

@mikehearn
Copy link

Dialect

PostgreSQL

Failing SQL

SELECT NOW();

Description

"Unknown function NOW()"

@mikehearn mikehearn added the bug label Jul 30, 2022
@hfhbd
Copy link
Collaborator

hfhbd commented Aug 3, 2022

https://www.postgresql.org/docs/current/functions-datetime.html

now ( ) → timestamp with time zone
Current date and time (start of current transaction); see [Section 9.9.5](https://www.postgresql.org/docs/current/functions-datetime.html#FUNCTIONS-DATETIME-CURRENT)
now() → 2019-12-23 14:39:53.662522-05

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants