Skip to content
Permalink
Browse files

Calling right method in DboPostgres::trucante

  • Loading branch information...
lorenzo committed Oct 21, 2010
1 parent 0ffe6de commit ba1eb626789a2685d54ee0ce8068c6c53f10f327
Showing with 2 additions and 2 deletions.
  1. +2 −2 cake/libs/model/datasources/dbo/dbo_postgres.php
@@ -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}\"");
}
}
}

0 comments on commit ba1eb62

Please sign in to comment.
You can’t perform that action at this time.