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:
gwoo 2007-10-30 16:17:58 +00:00
parent 1ab95d703f
commit 65c106b2c5

View file

@ -346,8 +346,8 @@ class DboPostgres extends DboSource {
* @return integer
*/
function lastInsertId($source, $field = 'id') {
foreach ($this->__descriptions[$source] as $sourceinfo) {
if (strcasecmp($sourceinfo['name'], $field) == 0) {
foreach ($this->__descriptions[$source] as $name => $sourceinfo) {
if (strcasecmp($name, $field) == 0) {
break;
}
}