Closed
Description
Version
22.11.0
Platform
Microsoft Windows NT 10.0.22631.0 x64
Subsystem
node:sqlite
What steps will reproduce the bug?
import { DatabaseSync } from 'node:sqlite';
const db = new DatabaseSync(dbName);
db.exec(`VACUUM INTO '${backupName}';`);
How often does it reproduce? Is there a required condition?
name | point | calcPoint |
---|---|---|
Alex | 11.5 | 11 |
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 error Error: 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.
Metadata
Metadata
Assignees
Labels
No labels