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.
Walt Hultgren {rmy} — — source: Informix-list mailing list archive (1991-1998)
Path: emory!samsung!uunet!sdrc!cinnet!eric
From: eric@cinnet.com (Eric Bardes)
Newsgroups: comp.databases
Summary: Undocumented feature with the sqlca structure
Message-ID: <1991Mar18.083201.8860@cinnet.com>
Date: 18 Mar 91 08:32:01 GMT
References: <1991Mar13.171305.16997@vision.uucp> <1991Mar14.195331.13206@informix.com>
Organization: Cincinnati Network, Cinti. OH
>I have an application written with Informix's ESQL/C embedded SQL in C (not
>the 4GL product). When an error occurs, the error number can be found from
>the sqlca structure (in sqlca.sqlcode). What I would like to do is to be
>able to obtain the error text associated with that error number.
rgetmsg() often stores a '%s' to passed memory buffer. The sqlerrm field
of the sqlca structure has, in every case I can think of, contained
the proper value for the %s. Informix documentation says reserved for future
use.
It's useful, but use at your own confidence.
Eric
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.