Fixing Postgres sequence name generation for names not in the sequence map, fixes #3886

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6363 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
nate 2008-01-11 15:49:07 +00:00
parent 6640e45e33
commit ff5e6c9002

View file

@ -363,7 +363,7 @@ class DboPostgres extends DboSource {
if (isset($this->_sequenceMap[$table]) && isset($this->_sequenceMap[$table][$field])) {
return $this->_sequenceMap[$table][$field];
} else {
return "{$source}_{$field}_seq";
return "{$table}_{$field}_seq";
}
}
/**