informix
INFORMIX-ESQL/C Programmer's Manual
Programming with INFORMIX-ESQL/C

Using Global ESQL/C Variables in a Windows Environment

In earlier versions of the ESQL/C product, ESQL/C provided several global variables to support different features. Figure 1-23 describes these global variables.

Figure 1-23
Global ESQL/C Variables

Global Variable Description
SQLSTATE An ANSI-compliant status code as a five-character string (plus null terminator) For more information about SQLSTATE, see Chapter 11, Exception Handling.
SQLCODE
sqlca.sqlcode
An Informix-specific status code as an integer value For more information about SQLCODE, see Chapter 11, Exception Handling.
sqlca structure Informix-specific diagnostic information For more information about this structure, see Chapter 11, Exception Handling.
FetBufSize The size of the fetch buffer For more information on FetBufSize, see Chapter 14, Using Dynamic SQL.
InetLogin
structure
Environment information for the client ESQL/C application. For more information, see InetLogin Structure.

In environments, ESQL/C implements the global variables in Figure 1-23 as functions, which the sqlhdr.h file defines. These functions return values that have the same data types as their global-variable counterparts. Therefore, this change in implementation does not require modification of existing ESQL/C code. You can still use these functions in the same context as their global-variable counterparts.


INFORMIX-ESQL/C Programmer's Manual, Version 9.21
Copyright © 1999, Informix Software, Inc. All rights reserved