Changing Function Return Behavior

In Version 6, an HLI function can image-exit under certain conditions (for example, if a fatal Progress error occurs). In Version 9, all ESQL-LIB functions return control to the application, regardless of conditions. If a fatal Progress error occurs, the application recognizes this from an SQLCODE value of -99 and can take appropriate action on its own. In this case, further calls to all ESQL-LIB functions, except sqlgetmsg(), have no effect.

Also unlike Version 6, a Version 9 call to sqllogout() does not exit, but returns control to your application. Carefully check all of your calls to sqllogout(). If your application expects to exit at that point, exit() following the call to sqllogout(). Note also that in Version 7 and Version 8, the exit() function is no longer redefined to call sqllogout(); exit() now has its standard C run-time library behavior.


Copyright © 2004 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095