Permalink
Browse files

[DDC-262] Oracle and TableGenerator

  • Loading branch information...
1 parent b0f5280 commit 67a2fa4062fe3129f6ccb83120a15404d72137db @dpb587 dpb587 committed with beberlei May 5, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/Doctrine/DBAL/Id/TableGenerator.php
@@ -118,7 +118,9 @@ public function nextValue($sequenceName)
"WHERE sequence_name = ? " . $platform->getWriteLockSQL();
$stmt = $this->conn->executeQuery($sql, array($sequenceName));
- if ($row = $stmt->fetch()) {
+ if ($row = $stmt->fetch(\PDO::FETCH_ASSOC)) {
+ $row = array_change_key_case($row, CASE_LOWER);
+
$value = $row['sequence_value'];
$value++;

0 comments on commit 67a2fa4

Please sign in to comment.