Connection.addPreparedStatement

Declares that prepared_stmt is a prepared statement object associated to gda_stmt within the connection (meaning the connection increments the reference counter of prepared_stmt).

If gda_stmt changes or is destroyed, the the association will be lost and the connection will lose the reference it has on prepared_stmt.

class Connection
void
addPreparedStatement

Parameters

gdaStmt gda.statement.Statement

a #GdaStatement object

preparedStmt gda.pstmt.PStmt

a prepared statement object (as a #GdaPStmt object, or more likely a descendant)