From 6418baaa868c543538281819ba33ca2ebb2232a0 Mon Sep 17 00:00:00 2001 From: "mariano.iglesias" Date: Sat, 31 May 2008 21:33:37 +0000 Subject: [PATCH] Fixing issue where GROUP BY clause was positioned on the wrong place git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7078 3807eeeb-6ff5-0310-8944-8be069107fe0 --- cake/libs/model/datasources/dbo_source.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cake/libs/model/datasources/dbo_source.php b/cake/libs/model/datasources/dbo_source.php index b6a2e5f4d..ea33fbb89 100644 --- a/cake/libs/model/datasources/dbo_source.php +++ b/cake/libs/model/datasources/dbo_source.php @@ -1250,7 +1250,7 @@ class DboSource extends DataSource { switch (strtolower($type)) { case 'select': - return "SELECT {$fields} FROM {$table} {$alias} {$joins} {$conditions} {$order} {$limit}{$group}"; + return "SELECT {$fields} FROM {$table} {$alias} {$joins} {$conditions} {$group} {$order} {$limit}"; break; case 'update': if (!empty($alias)) {