class PDOXStatement extends PDOStatement

This is our "improved" version of PDOStatement

If the prepare() fails, this class can fake up methods that mimic a simple failed execute().

$stmt->errorCode()
$stmt->errorInfo()

We also augment the real or fake PDOStatement with these fields:

$stmt->success
$stmt->ellapsed_time
$stmt->errorImplode

$stmt->success is TRUE/FALSE based on the success of the operation to simplify error checking

$stmt->ellapsed_time includes the length of time the query took

$stmt->errorImplode an imploded version of errorInfo suitable for dropping into a log.

The technique for making this override is in the documentation for PDOStatement:

https://www.php.net/manual/en/class.pdostatement.php https://www.php.net/manual/en/pdo.setattribute.php

Properties

$success
$ellapsed_time
$errorImplode
$sqlQuery
$sqlOriginalQuery
$errorCodeOverride
$errorInfoOverride
$PDOX

Methods

__construct()

No description

errorCode()

No description

errorInfo()

No description

Details

at line 47
protected __construct()

at line 51
errorCode()

at line 57
errorInfo()