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.
Shyam Davuburu — — source: Informix-list mailing list archive (1991-1998)
In article 2547@clsib21.clsi.us.geac.com, jpt@clsib21.clsi.us.geac.com (Jean-Pierre Trevisani) writes:
>
> We use Informix ESQL/C Online 4.1 with straight C on Unix.
>
> Let's assume that in the middle of the application we do a BEGIN WORK
> followed by a couple of DELETE's and INSERT's. The program gets a signal
> before a COMMIT WORK or ROLLBACK WORK can be executed. The code must at
> this point exit.
>
> Here's the question:
> How can I find out whether I am in the middle of a transaction?
>
> Is there a function that would return some type of status that would tell
> the code that there are pending modifications?
>
> Replies to the group or by email are fine.
> Thanks,
>
> JP
Why don't you do a commit/rollback work in your signal handler and just ignore the
error, because commit/rollback work statements will give an error if you have not done a begon work before.
Shyam
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.