I'm using OracleDB with TypeORM on Sveltekit.
I want to SELECT records that were updated before commit in the same transaction. However, regardless of whether the transaction ISOLATION LEVEL
is set to SERIALIZABLE
or READ COMMITTED
, the records that can be retrieved by SELECT will be old records.
SELECT is running immediately after UPDATE in TypeORM's SQL log.
I can select correctly if I do an explicit commit after the update.
How can I retrieve the last written record?
(September 28 Edit)
It seems that my post was wrong. very sorry.
With .Net Core 6 + C# 10 + Oracle, I was able to UPDATE a record and SELECT before commit to get the updated record.
However, with node.js + Sveltekit + TypeORM, even if I did the same thing as above, I got the old record before the update.
I want to select new records in the same way on the node.js side.