TryGhost / node-sqlite3

SQLite3 bindings for Node.js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Segmentation fault due to syntax error

ioanclarke opened this issue · comments

Issue Summary

Running the following code while inside an Express server produces a segmentation fault on my system:

 db.run(`
        INSERT INTO quiz ($id, $name, $author, $dateutc) 
        VALUES ($id, $name, $author, $dateutc)`,
        params
    )

I was attempting to use Postgres syntax, which I now realise is incorrect of course.

When the above code runs, my Express server exits, and the following message is displayed in my terminal:
zsh: segmentation fault npm start

Steps to Reproduce

  1. Run the above code while inside an Express server
  2. The process exits with the message: zsh: segmentation fault npm start

Version

5.1.6

Node.js Version

16.8.1

How did you install the library?

npm install sqlite3