Skip to content

Commit

Permalink
Fixing broken test because of change done in previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzo committed Nov 11, 2010
1 parent 106379b commit 00a3eda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cake/libs/model/datasources/dbo/dbo_postgres.php
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ function fields(&$model, $alias = null, $fields = array(), $quote = true) {
}
$count = count($fields);

if ($count >= 1 && !preg_match('/^\s*COUNT\(/', $fields[0])) {
if ($count >= 1 && !preg_match('/^\s*COUNT\(\*/', $fields[0])) {
$result = array();
for ($i = 0; $i < $count; $i++) {
if (!preg_match('/^.+\\(.*\\)/', $fields[$i]) && !preg_match('/\s+AS\s+/', $fields[$i])) {
Expand Down

0 comments on commit 00a3eda

Please sign in to comment.