RemovePreparedStatementメソッド

機能

DBPreparedStatementオブジェクトを削除します。

形式

void RemovePreparedStatement(LPCTSTR lpctName = NULL)
                                              throw DBSQLCA

引数

lpctName

削除するDBPreparedStatementオブジェクトの名前,又はNULLを指定します。

NULLを指定した場合,このDBConnectionオブジェクトが持っているすべてのDBPreparedStatementオブジェクトを削除します。

戻り値

なし

機能詳細

引数lpctNameで指定された名前を持つDBPreparedStatementオブジェクトを削除します。また,削除するDBPreparedStatementオブジェクトで生成されたDBResultSetオブジェクトも削除します。

発生する例外

DBSQLCA(RetCode)

DB_ERROR_IN_ASYNC_EXECUTE
ステートメントが非同期実行処理中です。
DB_ERROR_CANNOT_FIND_OBJECT
指定した名前を持つDBPreparedStatementオブジェクトがありません。