Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Tracked by #2
uki00a opened this issue Mar 20, 2020 · 0 comments
Open
Tracked by #2
Labels
bug Something isn't working

Comments

@uki00a
Copy link
Member

uki00a commented Mar 20, 2020

  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;
}

@uki00a uki00a added the bug Something isn't working label Mar 20, 2020
@uki00a uki00a mentioned this issue Mar 20, 2020
16 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant