MYSQL.update

MYSQL.update — updates the database with the values in a row.

Syntax

MYSQL.update (row)

Arguments

row

An instance of a class corresponding to a table.

Returns

A MYSQL_RES instance. This function will throw an error on failure.

Description

This method of the MYSQL class attempts to update the database with the values that are stored in the instance variables of the row. The primary key must be known in order for this function to succeed.

This method is defined in the Gamma library /usr/cogent/require/MySQLSupport.g. It is made available to a Gamma program with the statement: require("MySQLSupport");.