-
Notifications
You must be signed in to change notification settings - Fork 30.3k
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
node:sqlite: "VACUUM INTO" gives error "no such function: floor" #56435
Comments
It seems like the issue is related to the use of I'm guessing this is because SQLite is currently compiled without |
That is likely the reason. |
I'm running into this issue as well, not with VACCUM specifically, but with the missing math functions: I just wanted to add a +1 to getting those enabled by default unless there's a good reason not to? Node v23.5.0
|
This commit enables SQLite math functions. Fixes: nodejs#56435
This commit enables SQLite math functions. Fixes: #56435 PR-URL: #56447 Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: James M Snell <[email protected]>
This commit enables SQLite math functions. Fixes: nodejs#56435 PR-URL: nodejs#56447 Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: James M Snell <[email protected]>
Version
22.11.0
Platform
Subsystem
node:sqlite
What steps will reproduce the bug?
How often does it reproduce? Is there a required condition?
I tested the code with a very simple database with only one table as shown in the table. The column calcPoint is a generated column defined by
floor(point)
. It generates errorError: no such function: floor
.If I remove the generated column calcPoint,
VACUUM INTO
works without error.What is the expected behavior? Why is that the expected behavior?
VACUUM INTO
should work when function floor is used.What do you see instead?
VACUUM INTO
gives error "Error: no such function: floor" when function floor is used.Additional information
This issue might exists for other sqlite functions as well.
The text was updated successfully, but these errors were encountered: