From b740b70f18c0538e20eb997ee6413af13ccdf801 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Bugy=C3=ADk?= Date: Thu, 21 Dec 2017 09:06:34 +0100 Subject: [PATCH] drivers: changed self:: to static:: --- src/Dibi/Drivers/MySqliDriver.php | 2 +- src/Dibi/Drivers/OracleDriver.php | 2 +- src/Dibi/Drivers/PostgreDriver.php | 4 ++-- src/Dibi/Drivers/Sqlite3Driver.php | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Dibi/Drivers/MySqliDriver.php b/src/Dibi/Drivers/MySqliDriver.php index 4a01a1cc..75b6e37e 100644 --- a/src/Dibi/Drivers/MySqliDriver.php +++ b/src/Dibi/Drivers/MySqliDriver.php @@ -150,7 +150,7 @@ class MySqliDriver implements Dibi\Driver, Dibi\ResultDriver $res = @mysqli_query($this->connection, $sql, $this->buffered ? MYSQLI_STORE_RESULT : MYSQLI_USE_RESULT); // intentionally @ if ($code = mysqli_errno($this->connection)) { - throw self::createException(mysqli_error($this->connection), $code, $sql); + throw static::createException(mysqli_error($this->connection), $code, $sql); } elseif (is_object($res)) { return $this->createResultDriver($res); diff --git a/src/Dibi/Drivers/OracleDriver.php b/src/Dibi/Drivers/OracleDriver.php index 7282972f..49920f24 100644 --- a/src/Dibi/Drivers/OracleDriver.php +++ b/src/Dibi/Drivers/OracleDriver.php @@ -120,7 +120,7 @@ class OracleDriver implements Dibi\Driver, Dibi\ResultDriver, Dibi\Reflector @oci_execute($res, $this->autocommit ? OCI_COMMIT_ON_SUCCESS : OCI_DEFAULT); $err = oci_error($res); if ($err) { - throw self::createException($err['message'], $err['code'], $sql); + throw static::createException($err['message'], $err['code'], $sql); } elseif (is_resource($res)) { $this->affectedRows = oci_num_rows($res); diff --git a/src/Dibi/Drivers/PostgreDriver.php b/src/Dibi/Drivers/PostgreDriver.php index ef4d2d93..9b12b0d1 100644 --- a/src/Dibi/Drivers/PostgreDriver.php +++ b/src/Dibi/Drivers/PostgreDriver.php @@ -96,7 +96,7 @@ class PostgreDriver implements Dibi\Driver, Dibi\ResultDriver, Dibi\Reflector pg_set_error_verbosity($this->connection, PGSQL_ERRORS_VERBOSE); if (isset($config['charset']) && pg_set_client_encoding($this->connection, $config['charset'])) { - throw self::createException(pg_last_error($this->connection)); + throw static::createException(pg_last_error($this->connection)); } if (isset($config['schema'])) { @@ -137,7 +137,7 @@ class PostgreDriver implements Dibi\Driver, Dibi\ResultDriver, Dibi\Reflector $res = @pg_query($this->connection, $sql); // intentionally @ if ($res === false) { - throw self::createException(pg_last_error($this->connection), null, $sql); + throw static::createException(pg_last_error($this->connection), null, $sql); } elseif (is_resource($res)) { $this->affectedRows = pg_affected_rows($res); diff --git a/src/Dibi/Drivers/Sqlite3Driver.php b/src/Dibi/Drivers/Sqlite3Driver.php index e129c727..b54f2834 100644 --- a/src/Dibi/Drivers/Sqlite3Driver.php +++ b/src/Dibi/Drivers/Sqlite3Driver.php @@ -117,7 +117,7 @@ class Sqlite3Driver implements Dibi\Driver, Dibi\ResultDriver $res = @$this->connection->query($sql); // intentionally @ if ($code = $this->connection->lastErrorCode()) { - throw self::createException($this->connection->lastErrorMsg(), $code, $sql); + throw static::createException($this->connection->lastErrorMsg(), $code, $sql); } elseif ($res instanceof \SQLite3Result && $res->numColumns()) { return $this->createResultDriver($res);