From ff5e6c9002bc06e6adda8a7d1e621c2e66072217 Mon Sep 17 00:00:00 2001 From: nate Date: Fri, 11 Jan 2008 15:49:07 +0000 Subject: [PATCH] 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 --- cake/libs/model/datasources/dbo/dbo_postgres.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cake/libs/model/datasources/dbo/dbo_postgres.php b/cake/libs/model/datasources/dbo/dbo_postgres.php index 549de7a88..a318cfced 100644 --- a/cake/libs/model/datasources/dbo/dbo_postgres.php +++ b/cake/libs/model/datasources/dbo/dbo_postgres.php @@ -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"; } } /**