Connection.statementPrepare
bool statementPrepare(gda.statement.Statement stmt)Ask the database accessed through the cnc connection to prepare the usage of stmt. This is only useful if stmt will be used more than once (however some database providers may always prepare statements before executing them).
This function is also useful to make sure stmt is fully understood by the database before actually executing it.
Note however that it is also possible that [gda.connection.Connection.statementPrepare] fails when [gda.connection.Connection.statementExecute] does not fail (this will usually be the case with statements such as
<![CDATA["SELECT * FROM ##tablename::string"]]> because database usually don't allow variables to be used in place of atable name).
Parameters
stmt | a #GdaStatement object |
Returns
TRUE if no error occurred.
Throws
[ConnectionException]