We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In Postgresql functions CURRENT_DATE and CURRENT_TIME are keywords and appear always without brackets.
So there
pypika/pypika/functions.py
Line 278 in 53a77eb
Should be added
def get_function_sql(self, **kwargs): return "CURRENT_TIME"
AND there
Line 283 in 53a77eb
should be added
The text was updated successfully, but these errors were encountered:
I had the same problem. Looks like there's an error in the docs. Here's what worked for me:
from pypika.terms import Term class CurrentDate(Term): def get_sql(self, **kwargs): return "CURRENT_DATE"
This works too:
from pypika.terms import PseudoColumn CurrentDate = PseudoColumn('CURRENT_DATE')
but CurrentDate = Term('CURRENT_DATE') didn't work.
CurrentDate = Term('CURRENT_DATE')
Sorry, something went wrong.
No branches or pull requests
In Postgresql functions CURRENT_DATE and CURRENT_TIME are keywords and appear always without brackets.
So there
pypika/pypika/functions.py
Line 278 in 53a77eb
Should be added
AND
there
pypika/pypika/functions.py
Line 283 in 53a77eb
should be added
The text was updated successfully, but these errors were encountered: