Skip to content

node:sqlite: "VACUUM INTO" gives error "no such function: floor" #56435

Closed
@topvis

Description

@topvis

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions