From ba1eb626789a2685d54ee0ce8068c6c53f10f327 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Lorenzo=20Rodr=C3=ADguez?= Date: Wed, 20 Oct 2010 23:59:44 -0430 Subject: [PATCH] Calling right method in DboPostgres::trucante --- cake/libs/model/datasources/dbo/dbo_postgres.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cake/libs/model/datasources/dbo/dbo_postgres.php b/cake/libs/model/datasources/dbo/dbo_postgres.php index db264f7104c..6ed32b0f882 100644 --- a/cake/libs/model/datasources/dbo/dbo_postgres.php +++ b/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}\""); } } }