mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-02-12 06:56:24 +00:00
Adding fix for #2021
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4403 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
d44e497d19
commit
9b28c2ed27
1 changed files with 1 additions and 1 deletions
|
@ -357,7 +357,7 @@ class DboPostgres extends DboSource {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
$sql = "SELECT last_value AS max FROM {$source}_{$field}_seq";
|
$sql = "SELECT last_value AS max FROM \"{$source}_{$field}_seq\"";
|
||||||
$res = $this->rawQuery($sql);
|
$res = $this->rawQuery($sql);
|
||||||
$data = $this->fetchRow($res);
|
$data = $this->fetchRow($res);
|
||||||
return $data[0]['max'];
|
return $data[0]['max'];
|
||||||
|
|
Loading…
Add table
Reference in a new issue