mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
updating dbo_postgres, fixes #3198, cguyer provided more info over IRC and tested change
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5925 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
1ab95d703f
commit
65c106b2c5
1 changed files with 2 additions and 2 deletions
|
@ -346,8 +346,8 @@ class DboPostgres extends DboSource {
|
||||||
* @return integer
|
* @return integer
|
||||||
*/
|
*/
|
||||||
function lastInsertId($source, $field = 'id') {
|
function lastInsertId($source, $field = 'id') {
|
||||||
foreach ($this->__descriptions[$source] as $sourceinfo) {
|
foreach ($this->__descriptions[$source] as $name => $sourceinfo) {
|
||||||
if (strcasecmp($sourceinfo['name'], $field) == 0) {
|
if (strcasecmp($name, $field) == 0) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue