1
0
mirror of synced 2025-01-20 15:31:40 +03:00
This commit is contained in:
zYne 2007-02-16 19:16:00 +00:00
parent d977aee4fa
commit 008de1024d

View File

@ -42,7 +42,7 @@ class Doctrine_Sequence_Firebird extends Doctrine_Sequence
*/ */
public function nextID($seqName, $onDemand = true) public function nextID($seqName, $onDemand = true)
{ {
$sequenceName = $this->conn->quoteIdentifier($this->getSequenceName($seqName), true); $sequenceName = $this->conn->quoteIdentifier($this->conn->getSequenceName($seqName), true);
$query = 'SELECT GEN_ID(' . $sequenceName . ', 1) as the_value FROM RDB$DATABASE'; $query = 'SELECT GEN_ID(' . $sequenceName . ', 1) as the_value FROM RDB$DATABASE';
try { try {
@ -88,7 +88,7 @@ class Doctrine_Sequence_Firebird extends Doctrine_Sequence
*/ */
public function currId($seqName) public function currId($seqName)
{ {
$sequenceName = $this->conn->quoteIdentifier($this->getSequenceName($seqName), true); $sequenceName = $this->conn->quoteIdentifier($this->conn->getSequenceName($seqName), true);
$query = 'SELECT GEN_ID(' . $sequenceName . ', 0) as the_value FROM RDB$DATABASE'; $query = 'SELECT GEN_ID(' . $sequenceName . ', 0) as the_value FROM RDB$DATABASE';