Skip to content

No support for multiple commands in run #1121

Open
@infodusha

Description

@infodusha

I tried to add tables for two days.
The query was:

db.run(`
    PRAGMA foreign_keys = ON;
    CREATE TABLE pkgs( .... );
    CREATE TABLE subs( ... );
`);

And this query do nothing. Wow!
The bug is only first command runs!
Solution? Yey, just change db.run to db.exec.
Please, fix multiple commands in run or tell about this on wiki docs.
sqlite3 version: 4.0.6
node version: 11.7.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions