Prisma-client-js: Transaction API is not writing the transaction

Created on 24 Jun 2020  路  6Comments  路  Source: prisma/prisma-client-js

Bug description

The transaction API is not writing data to database even though I am getting result back in the transaction object

image
image

How to reproduce

See https://github.com/harshit-test-org/prisma-internal-transaction-issue

Expected behavior

It should write data to the database.

Environment & setup

  • OS: MacOS 10.15.5
  • Database: Postgres 11
  • Prisma version: 2.2.0-dev.1
  • Node.js version: 12.16.2
bu2-confirmed kinbug tecengines

All 6 comments

Fix is available in 2.2.0-dev.6

@janpio @pantharshit00 This should be backported in a patch version IMO, it's not supposed to be a beta software anymore so it should use semver correctly and this is clearly a break in a feature of 2.1.0.

This is being merged into a patch branch and will be released tomorrow.

But: The transaction API is behind a feature flag that makes it explicit that this is experimental functionality and not covered by the normal expectations (https://github.com/harshit-test-org/prisma-internal-transaction-issue/blob/92bc7194e41381e59a6a47bd207faf98afda2c0d/prisma/schema.prisma#L3). Please differentiate here.

The patch is available in 2.1.2. This contained a regression for studio though. So i recommend to use 2.1.3 instead.

Note for others @mavilein means 2.1.2 and 2.1.3.

Thanks @Sytten . Fixed it! 馃檹

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mrmntte picture mrmntte  路  3Comments

divyenduz picture divyenduz  路  3Comments

Vergil333 picture Vergil333  路  3Comments

maartenraes picture maartenraes  路  4Comments

williamluke4 picture williamluke4  路  3Comments