From 3617c2f89513333130c0caaa04b72ea204ae2213 Mon Sep 17 00:00:00 2001 From: "F. N" Date: Wed, 20 Nov 2019 15:14:17 +0100 Subject: [PATCH 1/3] add wrapper for PDO::beginTransaction, PDO::rollback and PDO::commit --- src/DataAccess.php | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/src/DataAccess.php b/src/DataAccess.php index eedf6d9..8944f4e 100644 --- a/src/DataAccess.php +++ b/src/DataAccess.php @@ -442,4 +442,34 @@ public function filterInsertValues($data, $fields) } return $insertValues; } + + /** + * Initiates a transaction + * @see \PDO::beginTransaction() + * @return bool TRUE on success or FALSE on failure. + */ + public function beginTransaction() + { + return $this->pdo->beginTransaction(); + } + + /** + * Initiates a transaction + * @see \PDO::rollBack() + * @return bool TRUE on success or FALSE on failure. + */ + public function rollback() + { + return $this->pdo->rollBack(); + } + + /** + * Commits a transaction + * @see \PDO::commit() + * @return bool TRUE on success or FALSE on failure. + */ + public function commit() + { + return $this->pdo->commit(); + } } From e90e1ad01b5986cca6a38ff8763e66974ff7142b Mon Sep 17 00:00:00 2001 From: "F. N" Date: Thu, 30 Jan 2020 13:01:57 +0100 Subject: [PATCH 2/3] remove PHP 5.5, add PHP 7.3 --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index bafb5bb..4959869 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,8 +1,8 @@ language: php php: - 5.6 - - 5.5 - 7 + - 7.3 - hhvm install: composer install script: ./vendor/bin/phpunit --coverage-clover clover.xml From c88f7cc2750e63c3cdbe9ac77b9d09511cbd99f7 Mon Sep 17 00:00:00 2001 From: "F. N" Date: Thu, 30 Jan 2020 13:09:18 +0100 Subject: [PATCH 3/3] allow failure of PHP 7.3 --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index 4959869..b9b338c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,4 +11,5 @@ matrix: fast_finish: true allow_failures: - php: 7 + - PHP: 7.3 - php: hhvm