Translating with DrWatson… this can take a few seconds the first time.
This is a genuine, complex translation. DrWatson protects commands, error codes, and log output while naturally translating the surrounding text. It’s translated once and saved.
I am trying to put a promotable lock on a table
record within stored procedure.
I was about to use "select for update" to do that but it looks like informix
spl does not allow to do that.
Any suggestions? (Informix IDS 7.31)
Thanks in advance.
↪ replying to BORIS
INDRANIL DEB — — source: IIUG Forums & Mailing Lists
Hi,
You set lock mode of that table in row level. Use cursor to select the rows
and then use it to update. Then automatically it will be locked in exclusive
mode. But, here until unless you commit, the entire active set will be locked.
So, you can put the updated statement within the transaction.
With Regards,
We use strictly necessary cookies to make this site work. With your
consent we’d also use optional cookies for analytics and marketing. You can accept all,
reject all, or choose. Read our Cookie Policy.