Skip to content
Permalink
Browse files

Fix mistake with previous commit.

I forgot to put the correct variable into the query like a doofus.

Refs #4168
  • Loading branch information...
markstory committed Nov 19, 2014
1 parent 5dab175 commit 23c5805763e3603966f6876a77f1418cc57b16de
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Cake/Model/Datasource/Database/Postgres.php
@@ -354,7 +354,7 @@ public function truncate($table, $reset = false) {
if (isset($this->_sequenceMap[$table]) && $reset != true) {
foreach ($this->_sequenceMap[$table] as $sequence) {
$quoted = $this->name($sequence);
$this->_execute("ALTER SEQUENCE {$sequence} RESTART WITH 1");
$this->_execute("ALTER SEQUENCE {$quoted} RESTART WITH 1");
}
}
return true;

0 comments on commit 23c5805

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