Calling right method in DboPostgres::trucante

This commit is contained in:
José Lorenzo Rodríguez 2010-10-20 23:59:44 -04:30
parent 0ffe6de9e4
commit ba1eb62678

View file

@ -318,9 +318,9 @@ class DboPostgres extends DboSource {
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}\"");
}
}
}