[ Version ( since = "4.2" ) ]
public SqlBuilderId add_param (string param_name, Type type, bool nullok)
Defines a parameter in this which may be reused to build other parts of a statement.
The new expression will contain the string
literal. For example: <programlisting> gda_sql_builder_add_param (b, "age",
G_TYPE_INT, FALSE) </programlisting>
will be rendered as SQL as: <programlisting><![CDATA[ #age::int
]]> </programlisting>
this |
a SqlBuilder object |
param_name |
parameter's name |
type |
parameter's type |
nullok |
TRUE if the parameter can be set to null |
the ID of the new expression, or 0 if there was an error |