Re: ESQL/C and error msgs
Posted in 1992
Jonathan Leffler — — source: Informix-list mailing list archive (1991-1998)
>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>