Skip to content

How to proper close database? after colse statement still exists #59

@HannesRammer

Description

@HannesRammer

im on
ubuntu 16.04
dart sdk 1.19
sqlite 0.4.0

  1. I do
    ...
    var db = new sqlite.Database("pathtosqlite")
    ...
  2. I get a database connection and pass it through some functions
    ...
    var x = await doStuff(db); (doing several db.query() calls)
    db.close()
    ...

but then I always get an error saying

...
Warning: sqlite.Database.close(): 2 statements still open.
finished with exit code 139 (interrupted by signal 11: SIGSEGV)
...

any tips on what Im doing wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions