update_row_in_table


Description:

[ Version ( since = "4.2.3" ) ]
public bool update_row_in_table (string table, string condition_column_name, Value condition_value, Error error, ...)

This is a convenience function, which creates an UPDATE statement and executes it using the values provided.

It internally relies on variables which makes it immune to SQL injection problems.

The equivalent SQL command is: UPDATE <table> SET <column_name> = <new_value> [,...] WHERE <condition_column_name> = <condition_value>.

Parameters:

this

an opened connection

table

the table's name with the row's values to be updated

condition_column_name

the name of the column to used in the WHERE condition clause

condition_value

the condition_column_type's GType

error

a place to store errors, or null

...

a list of string/GValue pairs with the name of the column to use and the GValue pointer containing the value to update the column to (value can be null), finished by a null. There must be at least one column name and value

Returns:

TRUE if no error occurred, FALSE otherwise