Merge pull request #1614 from okinaka/2.x-disused-code

Postgres::truncate(): Delete disused code.
This commit is contained in:
Mark Story 2013-09-05 18:16:22 -07:00
commit 0f528c279a

View file

@ -346,7 +346,6 @@ class Postgres extends DboSource {
$this->cacheSources = $cache; $this->cacheSources = $cache;
} }
if ($this->execute('DELETE FROM ' . $this->fullTableName($table))) { if ($this->execute('DELETE FROM ' . $this->fullTableName($table))) {
$schema = $this->config['schema'];
if (isset($this->_sequenceMap[$table]) && $reset != true) { if (isset($this->_sequenceMap[$table]) && $reset != true) {
foreach ($this->_sequenceMap[$table] as $sequence) { foreach ($this->_sequenceMap[$table] as $sequence) {
list($schema, $sequence) = explode('.', $sequence); list($schema, $sequence) = explode('.', $sequence);