Path: utzoo!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!samsung!uunet!sdrc!cinnet!eric From: eric@cinnet.com (Eric Bardes) Newsgroups: comp.databases Subject: Re: Informix messages in ESQL/C 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 Lines: 13 >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