add_id


Description:

[ Version ( since = "4.2" ) ]
public SqlBuilderId add_id (string str)

Defines an expression representing an identifier in this, which may be reused to build other parts of a statement, for instance as a parameter to add_cond or add_field_value_id.

The new expression will contain the str literal. For example:

gda_sql_builder_add_id (b, "name")
gda_sql_builder_add_id (b, "date")

will be rendered as SQL as:

name
"date"

because "date" is an SQL reserved keyword.

For fields, see add_field_id.

Parameters:

this

a SqlBuilder object

str

a string

Returns:

the ID of the new expression, or typeof ( unichar2)0 if there was an error