Re: Review - mailme.4gl
Posted in 1994
->Date: Fri, 4 Mar 94 17:36:53 GMT ->From: pkb@uk.ac.umds.pru1 (Peter Botcherby) ->To: alan@po.den.mmc.com ->Subject: Re: Review - mailme.4gl ->Reply-To: p.botcherby@miranda.umds.ac.uk -> ->Alan, -> ->->Please let me know how/if the function that I posted works for you. I try ->->to write portable code, but I am still comparatively new to C, and it keeps ->->me very humble. -> ->Thanks for the function - I am also not that familiar with calling c routines ->from Informix especially since I only have the RDS environment. However, ->after RTM I have partially got your function working. Your function is fine ->its Informix which is playing up. If I call your function as you suggested ->its works great as long as I run it under the new runner I created for the ->debugger but when I run it with the new runner normally the (%s) is replaced ->by (). I have tried several ways of passing the arguments but none work ->except with the debugger. I have modified the c code to write out the contents ->of the variables and to trim the trailing space so that you can see its doing ->something. I think I may have come across another bug in Informix. -> ->Thanks again, Peter -> Peter, Using the C routine with RDS does add a new wrinkle to things. It is possible that the RDS in normal mode is not filling in the SQLCA.SQLERRM field. On p. 3-77 of the Informix-4GL Reference Manual, Volume 1, for Version 4.00, it says "SQLERRM is not used at this time." However, my ancient (1.10.03F) version of compiled 4GL does indeed fill in that field. I have heard of subtle differences like this between the compiled and interpreted versions. It may not be a bug, just an incomplete port. Since the manual says the field is not used, Informix is in a fairly strong position to say something like, "If it works on your port, fine; if it doesn't, well we didn't say it would, did we?" This may not be very satisfying to a user, but it is a logically defendible position for Informix. I know I would hate to have to port something as complex as a DBMS to all the computers, OSs, etc. that Informix supports. Regards, Alan ___________________________ ______________________| R. Alan Popiel |__________________________ \\ Internet: | Martin Marietta, SLS | / \\ alan@den.mmc.com | P.O. Box 179, M/S 3810 | Std disclaimers apply. / )Voice: | Denver, CO 80201-0179 USA | ( / 303-977-9998 |___________________________| (But you knew that!) \\ /________________________) (____________________________\\