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
When running a valid sql comment that has a negative integer as an argument:
%sql SELECT DATEADD(month, -2, SYSDATE)
It returns an error:
UsageError: unrecognized arguments: -2, SYSDATE)
If you make the '-2' a string and cast it to an INT then it works:
%sql SELECT DATEADD(month, '-2'::INT, SYSDATE)
Works.
The text was updated successfully, but these errors were encountered:
have the same issue
Sorry, something went wrong.
Another workaround is to remove the space before the '-': %sql SELECT DATEADD(month,-2, SYSDATE)
%sql SELECT DATEADD(month,-2, SYSDATE)
improves duckdb tutorial (catherinedevlin#190)
0bde7c8
No branches or pull requests
When running a valid sql comment that has a negative integer as an argument:
%sql SELECT DATEADD(month, -2, SYSDATE)
It returns an error:
UsageError: unrecognized arguments: -2, SYSDATE)
If you make the '-2' a string and cast it to an INT then it works:
%sql SELECT DATEADD(month, '-2'::INT, SYSDATE)
Works.
The text was updated successfully, but these errors were encountered: