Re: Linking ESQL & 4GL
Posted in 1994
Jonathan Leffler (johnl@informix.com) wrote: : The key information here is that the I4GL is a 4.1x and the ESQL/C is a : 5.0x version. This means that I4GL uses a version 4.1x ESQL/C library, : which is significantly different from the 5.0x library. In particular, the : mechanisms for handling cursors and statements are quite different at the : implementation level, and the calls generated for a DECLARE statement, for : instance, are quite different. Further, the 5.0x library is not a simple : superset of the 4.1x library -- the two cannot be mixed reliably. : Typically, the programs won't link at all, either suffering missing or : duplicated references. However, even if you managed to get them to link, : the code would be unreliable. Don't try it. Does that mean I have no chance carrying over my programs from my old machine with an all-4.1-environment to my new machine which has ESQL/C 5.01 and I4GL 4.1? I've written some programs IN ESQL/C which do most of the database access and some other stuff which can't be done in 4GL and use 4GL modules only for screen I/O. Your above statements imply that this code will break in my new environment. If I have to rewrite, I have one more concern: Are SQL statements within a 4GL program just as performant as embedded SQL statements in C? Regards, Richard -- +----------------------------+-------------------------------------------+ | Dr. Richard Spitz | INTERNET: spitz@ana.med.uni-muenchen.de | | EDV-Gruppe Anaesthesie | Tel : +49-89-7095-3421 | | Klinikum Grosshadern | FAX : +49-89-7095-8886 | | 81366 Munich, Germany | | +----------------------------+-------------------------------------------+