Statement.checkValidity

bool checkValidity(gda.connection.Connection cnc = null)

If cnc is not null then checks that every object (table, field, function) used in stmt actually exists in cnc's database

If cnc is null, then cleans anything related to cnc in stmt.

See [gda.sql_statement.SqlStatement.checkValidity] for more information.

Parameters

cnca #GdaConnection object, or null

Returns

TRUE if every object actually exists in cnc's database

Throws

[StatementException]