sql_needs_quotes Function

This function formulates a request to the database server to determine if quotes are needed. Relevant information is stored in the sqlcode field.

Syntax

unsigned int sql_needs_quotes( SQLCA *sqlca, char * str );

Parameters

Returns

TRUE or FALSE indicating whether the string requires double quotes around it when it is used as a SQL identifier.

Remarks

There are three cases of return value/code combinations: