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.
"Andy Kent" — — source: Informix-list mailing list archive (1991-1998)
> Bill,
> You will probably use a Select statement declare with hold "WITH HOLD"
> used in this way:
>
> DECLARE some_cursor CURSOR WITH HOLD FOR
> select something from ....> FOR UPDATE.
>
> This will keep the lock on the table until you releas it with a CLOSE
> statement
Sorry but this is not actually true. You've got the purpose of a WITH
HOLD cursor upside-down: its purpose is to prevent a cursor being closed
after you do a commit. You still lose all the locks.
akent@cix.compulink.co.uk (Andy Kent)
------------------------------------------------
Freelance Informix Database Specialist,
Redland, Bristol, England
Your privacy choices
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.