Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Closes #3707

Merge branch 'romulobusatto-fixture_postgresql_quotes'
  • Loading branch information...
commit 852a7744d6000dddcfc4efd99910bd43ab6828b5 2 parents 8a5fcab + ab50be7
@ralphschindler ralphschindler authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 library/Zend/Db/TableGateway/Feature/SequenceFeature.php
View
4 library/Zend/Db/TableGateway/Feature/SequenceFeature.php
@@ -83,7 +83,7 @@ public function nextSequenceId()
$sql = 'SELECT ' . $platform->quoteIdentifier($this->sequenceName) . '.NEXTVAL FROM dual';
break;
case 'PostgreSQL':
- $sql = 'SELECT NEXTVAL(' . $platform->quoteIdentifier($this->sequenceName) . ')';
+ $sql = 'SELECT NEXTVAL(\'' . $this->sequenceName . '\')';
break;
default :
return null;
@@ -112,7 +112,7 @@ public function lastSequenceId()
$sql = 'SELECT ' . $platform->quoteIdentifier($this->sequenceName) . '.CURRVAL FROM dual';
break;
case 'PostgreSQL':
- $sql = 'SELECT CURRVAL(' . $platform->quoteIdentifier($this->sequenceName) . ')';
+ $sql = 'SELECT CURRVAL(\'' . $this->sequenceName . '\')';
break;
default :
return null;
Please sign in to comment.
Something went wrong with that request. Please try again.