Re: ESQL/C transaction
Posted in 1993
In article <1rgqc7INN72m@emory.mathcs.emory.edu> unifi!goofy.unifi.com!bharat@uunet.UU.NET (Bharat Shah) writes: } } I have multiple libraries of ESQL-C functions. A lot of them call one } another. Some functions also have begin/rollback/commit transactions. } Problem I face is before starting transaction, how can I detect that } a transaction has already been started ?? } Multiple "begin work"s obviously (and correctly) is unsuccessful and } returns error. } This may sound stupid but... create a boolean variable called "work". Whenever you do a "$begin work", set the variable to true. When you do a "$commit work" or a "$rollback work", set the variable to false. I told you this sounded stupid :-) DAS -- David Snyder @ Snide Computer Services - Folcroft, PA Current Release is db4glgen-3.11 UUCP: ..!uunet!das13!dave INTERNET: dave.snyder@snide.com