Skip to content

[sqlite] Investigate the cause of SqliteBusy error in tests (currently ignored) #25

Open
@uki00a

Description

  1) query builder > sub-query
       "after all" hook for "should execute sub query in joins as string (as selection)":
     SqliteError: unable to close due to unfinalized statements or unfinished backups
      at DB._error (https://deno.land/x/sqlite@73935087a1ebe9108d784503bc5474662ba54b73/src/db.js:265:16)
      at DB.close (https://deno.land/x/sqlite@73935087a1ebe9108d784503bc5474662ba54b73/src/db.js:242:18)
      at SqliteDriver.disconnect (SqliteDriver.ts:53:33)
      at Connection.close (Connection.ts:223:27)
      at test-utils.ts:278:104
      at Array.map (<anonymous>)
      at closeTestingConnections (test-utils.ts:278:36)
      at Context.<anonymous> (query-builder-subquery.ts:24:17)
      at callFn (https://unpkg.com/[email protected]/mocha.js:5420:21)
      at Hook.Runnable.run (https://unpkg.com/[email protected]/mocha.js:5407:7)

if (error.code === 5) { // SqliteBusy
// FIXME
// This problem occurs since deno-sqlite@73935087a1ebe9108d784503bc5474662ba54b73.
// We need more research...
console.warn(error); // this.connection.logger.log("warn", error.message);
} else {
throw error;
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    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