Skip to content

Commit

Permalink
Fix mistake with previous commit.
Browse files Browse the repository at this point in the history
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 23c5805
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Cake/Model/Datasource/Database/Postgres.php
Expand Up @@ -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;
Expand Down

0 comments on commit 23c5805

Please sign in to comment.