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
if ($sequence->getCache() === 0) {
return ' NOCACHE';
} else if ($sequence->getCache() === 1) {
return ' CACHE 20';
return ' NOCACHE';
} else if ($sequence->getCache() > 1) {
return ' CACHE ' . $sequence->getCache();
}
......
......@@ -406,7 +406,7 @@ class OraclePlatformTest extends AbstractPlatformTestCase
public function dataCreateSequenceWithCache()
{
return array(
array(1, 'CACHE 20'),
array(1, 'NOCACHE'),
array(0, 'NOCACHE'),
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