home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / database / informix / 1593 < prev    next >
Encoding:
Internet Message Format  |  1992-07-23  |  1.1 KB

  1. Path: sparky!uunet!europa.asd.contel.com!emory!emory.mathcs.emory.edu
  2. From: widener!obelix.informix.com!johnl@emory.mathcs.emory.edu (Jonathan Leffler)
  3. Newsgroups: comp.databases.informix
  4. Subject: Re:  ESQL/C and error msgs
  5. Message-ID: <9222@emory.mathcs.emory.edu>
  6. Date: 23 Jul 92 12:48:03 GMT
  7. Sender: walt@mathcs.emory.edu
  8. Reply-To: widener!obelix.informix.com!johnl@emory.mathcs.emory.edu (Jonathan Leffler)
  9. Lines: 22
  10. X-Informix-List-ID: <list.1336>
  11.  
  12.  
  13. >From: uunet!strengur.is!snorri (Snorri Bergmann)
  14. >Subject: ESQL/C and error msgs
  15. >To: informix-list@rmy.emory.edu (Informix - List)
  16. >Date: Wed, 22 Jul 92 9:06:08 CUT
  17. >X-Informix-List-Id: <list.1333>
  18. >
  19. >Is there function in esql/c to get the SQL error message if you have the
  20. >sql error code? (Similar to ERR_GET function in 4gl).
  21.  
  22. The answer is yes: the function is rgetmsg.
  23.  
  24. rgetmsg(msgnum, msgstr, len)
  25. short    msgnum;
  26. char    *msgstr;
  27. short    len;
  28.  
  29. If you're creating function prototypes, treat the shorts and ints.
  30.  
  31. This is an RTFM question if you have ESQL/C Version 4.00 or later.
  32.  
  33. Jonathan Leffler (johnl@obelix.informix.com) #include <disclaimer.h>
  34.