tursodatabase / tursodatabase/libsql

Double close on local database

Open
#1,189 0 comments 0 reactions 1 assignee View on GitHub

@LucioFranco is already working on this.

Since Mar 11, 2024.

bug Embedded Replicas
Dominant language
C
Stars
17.2k
Forks
531
Avg merge
1h 12m
Merged PRs (30d)
1

Description

2024-03-11T14:45:53.237002Z ERROR tests::embedded_replica: sqlite error 21: API call with invalid database connection pointer
2024-03-11T14:45:53.237729Z ERROR tests::embedded_replica: sqlite error 21: misuse at line 180340 of [17129ba1ff]
2024-03-11T14:45:53.246094Z ERROR tests::embedded_replica: sqlite error 17: statement aborts at 59: [INSERT OR REPLACE INTO namespace_configs (namespace, config) VALUES (?1, ?2)] database schema has changed

https://github.com/tursodatabase/libsql/blob/main/libsql/src/local/connection.rs#L80-L85

We should check the return of this and see why it errors.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.