Skip to content

Commit

Permalink
Calling right method in DboPostgres::trucante
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzo committed Oct 21, 2010
1 parent 0ffe6de commit ba1eb62
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cake/libs/model/datasources/dbo/dbo_postgres.php
Expand Up @@ -318,9 +318,9 @@ public function truncate($table, $reset = 0) {
if (isset($this->_sequenceMap[$table]) && $reset !== 1) {
foreach ($this->_sequenceMap[$table] as $field => $sequence) {
if ($reset === 0) {
$this->execute("ALTER SEQUENCE \"{$sequence}\" RESTART WITH 1");
$this->_execute("ALTER SEQUENCE \"{$sequence}\" RESTART WITH 1");
} elseif ($reset === -1) {
$this->execute("DROP SEQUENCE IF EXISTS \"{$sequence}\"");
$this->_execute("DROP SEQUENCE IF EXISTS \"{$sequence}\"");
}
}
}
Expand Down

0 comments on commit ba1eb62

Please sign in to comment.