@updateAt
is not updated when create and update in same transaction.
#22326
Labels
bug/2-confirmed
Bug has been reproduced and confirmed.
kind/regression
A reported bug in functionality that used to work before.
team/client
Issue for team Client.
topic: transaction
topic: updatedAt
Bug description
When create and update in same transaction, a column with
@updateAt
is not updated in update timing.This behavior is not appeared in prisma 4.3.0.
It's appeared in prisma 4.4.0 or later versions.
I execute
prisma.user.create({})
andprisma.user.update({})
in same interactiveTransactions.It has 4-seconds wait time between create and update.
However, the value of a column with @updateAt is the same as the value of a column with @default(now()).
I checked some issues.
I'm not sure but following issue and PR might to be related my issue.
#12572
prisma/prisma-engines#3200
How to reproduce
Expected behavior
Same result as prisma 4.3.0.
updatedAt
is updated when the record is updated.The value of updatedAt is delayed by about 4 seconds.
Prisma information
Environment & setup
Prisma Version
The text was updated successfully, but these errors were encountered: