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.

class SqlBuilder
addExprValue

Parameters

dh gda.data_handler.DataHandler

deprecated useless argument, just pass null

value gobject.value.Value

value to set the expression to, or null or a GDA_TYPE_NULL value to represent an SQL NULL

Return Value

Type: gda.types.SqlBuilderId

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