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:
phpnut 2007-02-02 04:39:48 +00:00
parent d44e497d19
commit 9b28c2ed27

View file

@ -357,7 +357,7 @@ class DboPostgres extends DboSource {
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);
$data = $this->fetchRow($res);
return $data[0]['max'];