Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Connection creation added in Pgsql.php createStatement method #3456

Merged
merged 1 commit into from

3 participants

@kitsemets

Otherwise using Pgsql driver in ZendSkeletonApplication would fail.

@Maks3w Maks3w commented on the diff
library/Zend/Db/Adapter/Driver/Pgsql/Pgsql.php
@@ -161,6 +161,10 @@ public function createStatement($sqlOrResource = null)
}
*/
+ if (!$this->connection->isConnected()) {
+ $this->connection->connect();
@Maks3w Collaborator
Maks3w added a note

Bad indentation, must have only 4 spaces inside of the if block

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
@ralphschindler ralphschindler merged commit d40e6ff into zendframework:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 4 additions and 0 deletions.
  1. +4 −0 library/Zend/Db/Adapter/Driver/Pgsql/Pgsql.php
View
4 library/Zend/Db/Adapter/Driver/Pgsql/Pgsql.php
@@ -161,6 +161,10 @@ public function createStatement($sqlOrResource = null)
}
*/
+ if (!$this->connection->isConnected()) {
+ $this->connection->connect();
@Maks3w Collaborator
Maks3w added a note

Bad indentation, must have only 4 spaces inside of the if block

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
+ }
+
$statement->initialize($this->connection->getResource());
return $statement;
}
Something went wrong with that request. Please try again.