From 144ce409b12dc10f5851bf05d284d8f90e50cf9f Mon Sep 17 00:00:00 2001 From: Ryan Cramer Date: Fri, 12 Apr 2019 21:44:44 -0400 Subject: [PATCH] Bump version to 3.0.130 --- wire/core/ProcessWire.php | 2 +- wire/core/WireDatabasePDO.php | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/wire/core/ProcessWire.php b/wire/core/ProcessWire.php index 1f391d41..1e316f02 100644 --- a/wire/core/ProcessWire.php +++ b/wire/core/ProcessWire.php @@ -44,7 +44,7 @@ class ProcessWire extends Wire { * Reversion revision number * */ - const versionRevision = 129; + const versionRevision = 130; /** * Version suffix string (when applicable) diff --git a/wire/core/WireDatabasePDO.php b/wire/core/WireDatabasePDO.php index faf91a2c..1e22e1af 100644 --- a/wire/core/WireDatabasePDO.php +++ b/wire/core/WireDatabasePDO.php @@ -216,6 +216,8 @@ class WireDatabasePDO extends Wire implements WireDatabase { $this->pdoConfig['pass'], $this->pdoConfig['options'] ); + // custom PDO statement for later maybe + // $this->pdo->setAttribute(\PDO::ATTR_STATEMENT_CLASS,array(__NAMESPACE__.'\WireDatabasePDOStatement',array($this))); } if(!$this->init) $this->_init(); return $this->pdo; @@ -894,3 +896,15 @@ class WireDatabasePDO extends Wire implements WireDatabase { return $result; } } + +/** + * custom PDOStatement for later maybe + * +class WireDatabasePDOStatement extends \PDOStatement { + protected $database; + protected function __construct(WireDatabasePDO $database) { + $this->database = $database; + // $database->message($this->queryString); + } +} + */