home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / database / informix / 1880 < prev    next >
Encoding:
Internet Message Format  |  1992-09-04  |  1.5 KB

  1. Path: sparky!uunet!gumby!wupost!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:  memory allocation under AIX 3.2
  5. Message-ID: <9473@emory.mathcs.emory.edu>
  6. Date: 4 Sep 92 15:28:04 GMT
  7. Sender: walt@mathcs.emory.edu
  8. Reply-To: widener!obelix.informix.com!johnl@emory.mathcs.emory.edu (Jonathan Leffler)
  9. Lines: 27
  10. X-Informix-List-ID: <list.1430>
  11.  
  12. }Date: Wed, 2 Sep 92 22:38:00 GMT
  13. }Message-Id: <9209022238.AA05733@obelix.informix.com>
  14. }Subject: Re:  memory allocation under AIX 3.2
  15. }X-Informix-List-Id: <list.1424>
  16. }
  17. }}Date: Tue, 1 Sep 92 18:35:28 +0100
  18. }}From: Manuel Monteiro <uunet!ssf.pt!mm>
  19. }}Subject: memory allocation under AIX 3.2
  20. }}X-Informix-List-Id: <list.1423>
  21. }}
  22. }}I had the following problem when upgrading from AIX 3.1 to AIX 3.2.
  23. }}
  24. }}In a esql/c program, when you pushquote((char *)str, strlen(str)),
  25. }}what is really pushed into the stack is the pointer to the string, not
  26. }}the contents of the string (I didn't know that 'call by reference' was
  27. }}supported :-).
  28.  
  29. Time to grovel apologetically.  I was working too late at night to
  30. spot that the function which should be called is retquote, not
  31. pushquote.  If you use the correct function, you get the correct
  32. results.  Your code, Manuel, is simply wrong and should use retquote.
  33. My answer was wrong in not pointing this out.
  34.  
  35. My thanks to Dave Cortesi for pointing out the error of my ways.
  36.  
  37. Yours apologetically,
  38. Jonathan Leffler (johnl@obelix.informix.com) #include <disclaimer.h>
  39.