SqlStatement.checkValidityM

If mstruct is not null, then checks that all the database objects referenced in the statement i actually referenced in mstruct (for example the table being updated in a UPDATE statement must exist in the connection's database for the check to succeed). This method sets the stmt->validity_meta_struct attribute to mstruct.

If mstruct is null, then remove any information from a previous call to this method stored in stmt. In this case, the stmt->validity_meta_struct attribute is cleared.

Also note that some parts of stmt may be modified: for example leading and trailing spaces in aliases or objects names will be removed.

class SqlStatement
bool
checkValidityM

Parameters

mstruct gda.meta_struct.MetaStruct

a #GdaMetaStruct object, or null

Return Value

Type: bool

TRUE if no error occurred

Throws