2009-10-01 29 views
0

問候,cakephp與oracle:沒有組?

我試圖使用CakePHP查找使用'組'參數。

dbms是oracle,令我驚訝的是它沒有工作(在查詢中沒有分組)。

實施例:

$this->User->find('all', array('group' => 'id')); 

查詢返回:

select * from users User where 1 = 1; 

周圍挖在DboOracle :: renderStatement(源代碼),我發現這個:

return "SELECT {$fields} FROM {$table} {$alias} {$joins} {$conditions} {$order} {$limit}"; 

我驚訝沒有看到{$ group},所以我環顧四周,發現一些dbo_文件確實有{$組}}包含在查詢中,例如dbo_source.php

return "SELECT {$fields} FROM {$table} {$alias} {$joins} {$conditions} {$group} {$order} {$limit}"; 

這是不是說蛋糕不支持group by by oracle?或者有沒有我不知道的解決方法?

回答

1

這是一個最近已修復的已知問題。檢查this link

+0

很酷的感謝修復,思考'回合相同。 – 2009-10-01 07:26:38