SqlStatement.checkValidityM

bool checkValidityM(gda.meta_struct.MetaStruct mstruct = null)

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.

Parameters

mstructa #GdaMetaStruct object, or null

Returns

TRUE if no error occurred

Throws

[ErrorWrap]