Permalink
Browse files

Fix the SQL statement to select the sequence minimun value when the s…

…chema name is case sensitive
  • Loading branch information...
1 parent 6876437 commit af56e010e06bb73aa4f27f6692c692288ce95cda @ajgarlag ajgarlag committed Nov 22, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Doctrine/DBAL/Schema/PostgreSqlSchemaManager.php
@@ -237,7 +237,7 @@ protected function _getPortableSequenceDefinition($sequence)
$sequenceName = $sequence['relname'];
}
- $data = $this->_conn->fetchAll('SELECT min_value, increment_by FROM ' . $sequenceName);
+ $data = $this->_conn->fetchAll('SELECT min_value, increment_by FROM ' . $this->_platform->quoteIdentifier($sequenceName));
return new Sequence($sequenceName, $data[0]['increment_by'], $data[0]['min_value']);
}

0 comments on commit af56e01

Please sign in to comment.