Skip to content

Error cannot commit - no transaction is active on write transaction on ios. #109

Description

@punksta

I am getting an error on transaction

cannot commit - no transaction is active
export const createTablesIfNeeded = (database: Database) =>
  new Promise<void>((resolve, reject) => {
    database.transaction(
      txs => {
        txs.executeSql(Queries.createRecipeTable, [])
        txs.executeSql(Queries.createMealPlanTable, [])
      },
      reject,
      resolve
    )
  })

This happens only on ios devices.

I am using version 3.4.1

This code had been working well for almost a year and it's working well in sqlite3 node package environment.
I suppose new os or some of dependency broke something.

Activity

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions