Skip to content

Commit

Permalink
Removed old statement
Browse files Browse the repository at this point in the history
  • Loading branch information
skipperbent committed Dec 11, 2017
1 parent 8020d5a commit 7c7c0f2
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/Pecee/Pixie/QueryBuilder/QueryBuilderHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,6 @@ public function __construct(Connection $connection = null) {
$this->adapterInstance = new $adapterClass($this->connection);

$this->pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);

// PDO will parse parameter datatypes automatically
$this->pdo->setAttribute(PDO::ATTR_EMULATE_PREPARES, true);
}

/**
Expand All @@ -102,7 +99,7 @@ public function __construct(Connection $connection = null) {
* @return void
*/
protected function addStatement(string $key, $value) {
if (array_key_exists($key, $this->statements) === false) {
if (\array_key_exists($key, $this->statements) === false) {
$this->statements[ $key ] = (array)$value;
} else {
$this->statements[ $key ] = array_merge($this->statements[ $key ], (array)$value);
Expand Down

0 comments on commit 7c7c0f2

Please sign in to comment.