Skip to content

dbWriteTable cannot be nested within a transaction #41

Closed

Description

@ggrothendieck

dbWriteTable uses dbBegin ... dbCommit but these do not nest so dbWriteTable cannot be within a larger transaction.

These should be changed to use SQLite savepoints as those can be nested.

dbGetQuery(con, "savepoint dbWriteTable")
....
dbGetQuery(con, "release dbWriteTable")

For more info see: http://sqlite.org/lang_transaction.html

Activity

  1. added 4 commits that reference this issue on Nov 27, 2019
    09aa953
    5446433
    95a0d96
    cc596c9
  2. github-actions commented on Dec 11, 2020

    @github-actions
    Contributor

    This old thread has been automatically locked. If you think you have found something related to this, please open a new issue and link to this old issue if necessary.

  3. locked and limited conversation to collaborators on Dec 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions