/** * Cache definition for sequences * * @param Sequence $sequence * * @return string */ private function getSequenceCacheSQL(Sequence $sequence) { if ($sequence->getCache() === 0) { return ' NOCACHE'; } else { if ($sequence->getCache() === 1) { return ' NOCACHE'; } else { if ($sequence->getCache() > 1) { return ' CACHE ' . $sequence->getCache(); } } } return ''; }
/** * Cache definition for sequences * * @param Sequence $sequence * * @return string */ private function getSequenceCacheSQL(Sequence $sequence) { if ($sequence->getCache() > 1) { return ' CACHE ' . $sequence->getCache(); } return ''; }
/** * Cache definition for sequences * * @return string */ private function getSequenceCacheSQL(\Doctrine\DBAL\Schema\Sequence $sequence) { if ($sequence->getCache() > 1) { return ' CACHE ' . $sequence->getCache(); } return ''; }