Path: utzoo!utgpu!news-server.csri.toronto.edu!torsqnt!hybrid!scifi!bywater!uunet!bellahs!kelly From: kelly@bellahs.UUCP (Kelly Kingdon) Newsgroups: comp.databases Subject: Re: Informix messages in ESQL/C Summary: rgetmsg() Message-ID: <602@bellahs.UUCP> Date: 15 Mar 91 15:07:49 GMT References: <1991Mar13.171305.16997@vision.uucp> Organization: Bell Atlantic Healthcare Systems Greenbrae Ca. Lines: 20 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. > > [ text deleted ] I don't know about earlier versions but in Informix On-line there is a function, rgetmsg() that does exactly what you are looking for. It is in chap 5, library functions in the esql/c manual. =========================================================================== = Kelly Kingdon Bell Atlantic Healthcare Systems = = Phone: (415) 925-0121 Greenbrae, CA. = = = = E-mail: uunet!bellahs!kelly uunet!kelly@bellahs.UUCP =