home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / database / informix / 2691 < prev    next >
Encoding:
Internet Message Format  |  1992-12-14  |  1.5 KB

  1. Path: sparky!uunet!europa.asd.contel.com!emory!emory!not-for-mail
  2. From: kristen.m.altman@ccd.harris.com (Kristen Altman)
  3. Newsgroups: comp.databases.informix
  4. Subject: ESQL C problem with sqlerrd[2]
  5. Date: 14 Dec 1992 16:33:17 -0500
  6. Organization: Mailing List Gateway
  7. Lines: 21
  8. Sender: walt@mathcs.emory.edu
  9. Distribution: world
  10. Message-ID: <1giuitINNcgq@emory.mathcs.emory.edu>
  11. Reply-To: kristen.m.altman@ccd.harris.com (Kristen Altman)
  12. NNTP-Posting-Host: emory.mathcs.emory.edu
  13. X-Informix-List-ID: <list.1701>
  14.  
  15. In my application, I am using ESQL C 4.1 and formatting 
  16. dynamic SQL statements.
  17.  
  18. I have found the following problem/possible bug:
  19.  
  20. After the first fetch the number of rows returned in sqlerrd[2]
  21. is 0, but the sqlca.sqlcode = 0 also.  If I understand this correctly,
  22. the sqlerrd[2] says there are no rows, but the sqlcode says there are rows.  
  23. I printed out the data returned into the fetched structure and it is the data
  24. I am looking for.  Furthermore, I can run the command from the
  25. command line and it works just fine.
  26.  
  27. Does anyone have any idea what might be happening?  Is there a
  28. condition I am not aware of that sets either of these variables?
  29. -- 
  30. *******************************************************
  31. *                   Kristen Altman                    *
  32. *                 kma@ccd.harris.com                  *
  33. *              Harris Controls Division               *
  34. *                   Melbourne, FL                     *
  35. ******************************************************* 
  36.