Cursor names and statement IDs

By default, Informix® ESQL/C defines cursor names and statement IDs as global entities. If you use the -local option, static cursor names and static statement IDs that you declare in a file are local to that file.

To create the local name, Informix ESQL/C adds a unique tag (two to nine characters long) to the cursor names and statement IDs in the Informix ESQL/C program. If the combined length of the cursor name (or statement ID) and the unique tag exceeds 128 characters, you receive a warning message.

The -local option is provided primarily for compatibility with applications that were created in previous versions of Informix ESQL/C. Do not use this option when you compile new applications. Do not mix files compiled with and without the -local flag. If you mix them, you might receive unpredictable results.

If you use the -local option, you must recompile the source files every time you rename them.