Skip to content

Insert data is not returned when using pre-prepared statements #71

@ewanhowell1

Description

@ewanhowell1

Current Behavior

Pre-prepared statements return nothing

Expected Behavior

Pre-prepared statements return the insert data

Steps to Reproduce the Problem

console.log(await database.sql("INSERT INTO agents (email) VALUES ('test')"))
// { lastID: 9, changes: 1, totalChanges: 1, finalized: 1 }
const statement = database.prepare("INSERT INTO agents (email) VALUES ('test2')")
statement.run((err, res) => console.log(res))
// undefined

Environment

  • Version: 0.0.56
  • Platform: Win
  • Node.js Version: v20.12.2

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions