@salesforce/b2c-tooling-sdk / operations/cip / quoteIdentifierIfReserved
Function: quoteIdentifierIfReserved()
quoteIdentifierIfReserved(
name):string
Defined in: packages/b2c-tooling-sdk/src/operations/cip/sql.ts:63
Quotes a SQL identifier if it collides with a Calcite reserved word.
Pass a bare column name; if it is a reserved word it is returned double-quoted (for example method -> "method"), otherwise it is returned unchanged. Use this whenever a report references a column whose name might be reserved.
Parameters
name
string
Bare column or identifier name
Returns
string
The identifier, double-quoted only if it is a Calcite reserved word