Sign in Join
FPDoc Onlineexperiment

TCustomSQLQuery.UnPrepare procedure

Member of TCustomSQLQuerypublicIn unit SQLDB

Unprepare a prepared query.

Declaration

pascal
procedure UnPrepare; virtual

Description

Unprepare will unprepare a prepared query. This means that server resources for this statement are deallocated. After a query was unprepared, any ExecSQL or Open command will prepare the SQL statement again.

Several actions will unprepare the statement: Setting the SQL property, setting the Transaction property or setting the Database property will automatically call UnPrepare. Closing the dataset will also unprepare the query.

Errors

If the SQL server cannot unprepare the statement, an exception may be raised.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.