EPUB | CHM | PDF

TMySQLBatchExecute.Events.OnBatchError

Top Previous Next

note Deprecated since v2.6.0, use OnBatchErrorEx

OnBatchError event fires after an error occurs after execution of SQL statement from SQL script executed by ExecSQL method.

Syntax:

OnBatchError: TMySQLBatchErrorEvent;
Type
TMySQLBatchErrorEvent = procedure(Sender: TObject;
                                       E: EMySQLDatabaseError;
                                 SQLText: String;
                             StatementNo: Integer) of object;

Description:

Parameters:

Sender

Points to TMySQLBatchExecute component generated this error;

E

An instance of EmySQLDatabaseError object which contains this error info;

SQLText

Contains the text of the statement in which this error occurs;

StatementNo

The number of the SQL statement in SQL script.

See also: OnBatchErrorEx event