Commit d397c005 authored by Benjamin Eberlei's avatar Benjamin Eberlei

[DBAL-139] Fix sequence cache assumptions.

parent bdd22384
...@@ -213,7 +213,7 @@ class OraclePlatform extends AbstractPlatform ...@@ -213,7 +213,7 @@ class OraclePlatform extends AbstractPlatform
if ($sequence->getCache() === 0) { if ($sequence->getCache() === 0) {
return ' NOCACHE'; return ' NOCACHE';
} else if ($sequence->getCache() === 1) { } else if ($sequence->getCache() === 1) {
return ' CACHE 20'; return ' NOCACHE';
} else if ($sequence->getCache() > 1) { } else if ($sequence->getCache() > 1) {
return ' CACHE ' . $sequence->getCache(); return ' CACHE ' . $sequence->getCache();
} }
......
...@@ -406,7 +406,7 @@ class OraclePlatformTest extends AbstractPlatformTestCase ...@@ -406,7 +406,7 @@ class OraclePlatformTest extends AbstractPlatformTestCase
public function dataCreateSequenceWithCache() public function dataCreateSequenceWithCache()
{ {
return array( return array(
array(1, 'CACHE 20'), array(1, 'NOCACHE'),
array(0, 'NOCACHE'), array(0, 'NOCACHE'),
array(3, 'CACHE 3') array(3, 'CACHE 3')
); );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment