SqlBuilder.addExprValue

Defines an expression in builder which may be reused to build other parts of a statement.

The new expression will contain the value passed as the value argument.

If value's type is a string then it is possible to customize how the value has to be interpreted by passing a specific #GdaDataHandler object as dh. This feature is very rarely used and the dh argument should generally be null.

Parameters

dhdeprecated useless argument, just pass null
valuevalue to set the expression to, or null or a GDA_TYPE_NULL value to represent an SQL NULL

Returns

the ID of the new expression, or 0 if there was an error