OnExecSQL event

Previous  Top  Next

SeeAlso Properties Methods Events Example
Unit
MySQLDataset

Applies to
TMySQLDataset TMySQLTable and TMySQLQuery components

Declaration
type 
TMySQLEvent = procedure(Dataset: TMySQLDatasetBase; var SQL: stringvar Continue: boolean); of object;

property OnExecSQL: TMySQLEvent;

Description
This event occur just before an SQL statement is sent to the MySQL Server. SQL contains the complete SQL that maybe changed or customize by you. Continue determines if this statement should be executed or not. Great for debugging and logging functionality! Dataset would be either a TMySQLDataset/Table/Query which is ready to send the SQL to the mysql server's driver connected to it via it's Server property.