Transaction Malfunction #443
Labels
bug
Something isn't working
good first issue
Good for newcomers
os:Android
os:iOS
platform:flutter
type:engine
What version of Prisma Dart is running?
^5.1.1
What version of Prisma CLI is running?
5.21.1
What type of app are you using?
Flutter
What database are you using?
SQLite
What steps can reproduce the bug?
Schema
schema-excerpt:
prisma.dart and main.dart are initialized as described in https://prisma.pub/getting-started/flutter.html
Query Examples
I tried to run the transactions as described in the official docs (https://prisma.pub/queries/transactions.html).
After restarting my application I can see, that no changes were actually written to the database.
Attempt 1:
Attempt 2:
What is the expected behavior?
The transactions should run all overhanded deletions and return the deleted elements.
This is successful if running the queries without any transactions.
E.g.:
What do you see instead?
Once transactions are used, no change is performed in the database. - When restarting my applicaiton, all formally deleted entries are re-appearing in the UI.
Additional information
I also tried it for several update statements. This leads to the same behavior. (Running queries without transactions works - once transactions are introduced to ensure consistency between interdependent statements, no update is persisted.)
For example, I tried it with the following statements for setting one single user as "currentlySelected":
My app is currently running with:
I testet the functionality on Android 12.
The text was updated successfully, but these errors were encountered: