v5:performance:invalidsql
This is an old revision of the document!
invalidSql
Syntax
mixed invalidSql()
Description
The function invalidSql()
returns a list of invalid SQL statements collected by the performance monitor logSql feature.
Usage
/* * Connection to DB2 database */
$perf = newPerfMonitor($db);
/* * Enable logging */ $db→logSql();
/* * Execute invalid SQL statement */ $SQL = “SELECT * FROM act where actno > 'A'”;
$db→execute($SQL);
$h = $perf→invalidSql()
</code>
v5/performance/invalidsql.1440341162.txt.gz · Last modified: 2017/04/21 11:30 (external edit)