Bracketed indentifier name

The CS_BRACKETED_IDENT property is added to ct_con_props() API routine. When the property is set to CS_TRUE, ct_data_info() or ct_describe() returns a bracketed form for the identifier name.

The CS_BRACKETED_IDENT property is used when identifier name contains special characters, such as space.

For example, a column name returned by ct_data_info() can be column 1. When an application uses this kind of column name, it may encounter issues in certain cases. Bracketing the identifier name as [column 1] enables the application to know that the bracketed name is one identifier name.

When setting the CS_BRACKETED_IDENT property, a connection structure must already be allocated and used in ct_con_props (conn, CS_SET, CS_BRACKETED_IDENT, and so on) to set the property for that connection.

Syntax

/*** Enable property CS_BRACKETED_IDENT*/boolval = CS_TRUE;ct_con_props(*connection, CS_SET, CS_BRACKETED_IDENT, (CS_VOID *)&boolval, CS_UNUSED, NULL);