Enabling Delimited Identifiers
To use delimited identifiers, you must set the DELIMIDENT environment variable. While DELIMIDENTis set, strings enclosed in double quotation marks ( " ) are treated as identifiers of database objects, and strings enclosed in single quotation marks ( ' ) are treated as literal strings. If the DELIMIDENT environment variable is not set, however, strings enclosed in double quotation marks are also treated as literal strings.
PREPARE ... FROM 'SELECT * FROM customer';
If a delimited identifier is used in the SELECT statement that defines a view, then the DELIMIDENT environment variable must be set in order for the view to be accessed, even if the view name itself contains no special characters.
On UNIX and Linux systems, you can set DELIMIDENT by the procedures for setting environment variables that are described in HCL Informix® Guide to SQL: Reference.
- The setting of DELIMIDENT in the connection string when connecting
- The setting of the SQL_INFX_ATTR_DELIMIDENT connection attribute before connecting
- The setting of DELIMIDENT in setnet32 with the Use my settings box selected
- The setting of DELIMIDENT in setnet32 with the Use my settings box cleared
- The setting of DELIMIDENT on the command line before running the application
- The setting of DELIMIDENT in Windows as a user variable
- The setting of DELIMIDENT in Windows as a system variable
- The default value (of no support for delimited identifiers).