Skip to content
This repository was archived by the owner on Jul 25, 2020. It is now read-only.
This repository was archived by the owner on Jul 25, 2020. It is now read-only.

Database::get_errmsg() is not threadsafe #102

@apoelstra

Description

@apoelstra

The function sqlite3_errmsg returns the error message from "the most recent call". If this is going to be exposed then every single function calling a sqlite3_* function needs to take a mutable self, otherwise this function will be racy.

Probably the better thing is to not expose this message and instead bundle its result into any Errs that are returned from SqliteResult-returning function, since it is not very Rustic to have error reporting be separated from error occurance like this.

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