Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!hplabs!pyramid!infmx!barrym From: barrym@informix.com (Barry Mednick) Newsgroups: comp.databases Subject: Re: Informix messages in ESQL/C Summary: can do Message-ID: <1991Mar14.195331.13206@informix.com> Date: 14 Mar 91 19:53:31 GMT References: <1991Mar13.171305.16997@vision.uucp> Sender: Barry Mednick Organization: Informix Software, Inc. Lines: 13 In article <1991Mar13.171305.16997@vision.uucp> chris@vision.UUCP (Chris Davies) writes: >WRT Informix databases, at least version 2, probably OnLine/version 4 too... > >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. > >Alas, there doesn't seem to be any way of doing this, and it does seem rather >antiquated to tell the user "look the error number up in the book...". > See the function rgetmsg(), as defined in Chapter 5 of the ESQL/C 4.00 manual. It does exactly what you described.