Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

Commit

Permalink
Forward #3695
Browse files Browse the repository at this point in the history
Merge branch 'eminetto-fix_oracle' into develop
  • Loading branch information
Ralph Schindler committed Apr 16, 2013
2 parents 1821930 + 1c2dd77 commit fa1dce4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion library/Zend/Db/Adapter/Adapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ protected function createDriver($parameters)

/**
* @param Driver\DriverInterface $driver
* @return Platform\PlatformInterface
* @return Platform\PlatformInterface
*/
protected function createPlatform($parameters)
{
Expand Down
9 changes: 4 additions & 5 deletions library/Zend/Db/TableGateway/Feature/SequenceFeature.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ public function __construct($primaryKeyField, $sequenceName)
$this->sequenceName = $sequenceName;
}


/**
* @param Insert $insert
*/
public function preInsert(Insert $insert)
{
$columns = $insert->getRawState('columns');
Expand All @@ -56,10 +58,7 @@ public function preInsert(Insert $insert)
if ($this->sequenceValue === null)
return $insert;

array_push($columns, $this->primaryKeyField);
array_push($values, $this->sequenceValue);
$insert->columns($columns);
$insert->values($values);
$insert->values(array($this->primaryKeyField => $this->sequenceValue), Insert::VALUES_MERGE);
return $insert;
}

Expand Down

0 comments on commit fa1dce4

Please sign in to comment.