mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
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:
parent
6640e45e33
commit
ff5e6c9002
1 changed files with 1 additions and 1 deletions
|
@ -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";
|
||||
}
|
||||
}
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue