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.
Dave Snyder — — source: Informix-list mailing list archive (1991-1998)
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
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.