Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Fix for #4707 pgsql getLastGeneratedValue() Problem #5577

Merged
merged 1 commit into from

2 participants

@imel96

Added the sequence name to getLastGeneratedValue() which is required for PostgreSQL

@imel96

Fix for #4707 which is the same fix for issue #3406 applied to pgsql driver.

@ralphschindler ralphschindler referenced this pull request from a commit
@ralphschindler ralphschindler Merging PR #5577
Merge branch 'imel96-zf4707'

* imel96-zf4707:
  Added the sequence name to getLastGeneratedValue() which is required for Pos tgreSQL.
204e4e4
@ralphschindler ralphschindler merged commit d6918e7 into zendframework:master
@ralphschindler ralphschindler referenced this pull request from a commit
@ralphschindler ralphschindler Forward #5577
Merge branch 'imel96-zf4707' into develop

* imel96-zf4707:
  Added the sequence name to getLastGeneratedValue() which is required for Pos tgreSQL.
e3b01a9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Dec 2, 2013
  1. @imel96
This page is out of date. Refresh to see the latest.
Showing with 3 additions and 2 deletions.
  1. +3 −2 library/Zend/Db/Adapter/Driver/Pgsql/Pgsql.php
View
5 library/Zend/Db/Adapter/Driver/Pgsql/Pgsql.php
@@ -217,10 +217,11 @@ public function formatParameterName($name, $type = null)
/**
* Get last generated value
*
+ * @param string $name
* @return mixed
*/
- public function getLastGeneratedValue()
+ public function getLastGeneratedValue($name = null)
{
- return $this->connection->getLastGeneratedValue();
+ return $this->connection->getLastGeneratedValue($name);
}
}
Something went wrong with that request. Please try again.