home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!europa.asd.contel.com!emory!emory.mathcs.emory.edu
- From: widener!obelix.informix.com!johnl@emory.mathcs.emory.edu (Jonathan Leffler)
- Newsgroups: comp.databases.informix
- Subject: Re: ESQL/C and error msgs
- Message-ID: <9222@emory.mathcs.emory.edu>
- Date: 23 Jul 92 12:48:03 GMT
- Sender: walt@mathcs.emory.edu
- Reply-To: widener!obelix.informix.com!johnl@emory.mathcs.emory.edu (Jonathan Leffler)
- Lines: 22
- X-Informix-List-ID: <list.1336>
-
-
- >From: uunet!strengur.is!snorri (Snorri Bergmann)
- >Subject: ESQL/C and error msgs
- >To: informix-list@rmy.emory.edu (Informix - List)
- >Date: Wed, 22 Jul 92 9:06:08 CUT
- >X-Informix-List-Id: <list.1333>
- >
- >Is there function in esql/c to get the SQL error message if you have the
- >sql error code? (Similar to ERR_GET function in 4gl).
-
- The answer is yes: the function is rgetmsg.
-
- rgetmsg(msgnum, msgstr, len)
- short msgnum;
- char *msgstr;
- short len;
-
- If you're creating function prototypes, treat the shorts and ints.
-
- This is an RTFM question if you have ESQL/C Version 4.00 or later.
-
- Jonathan Leffler (johnl@obelix.informix.com) #include <disclaimer.h>
-