Changeset 3151
- Timestamp:
- 05/05/08 17:45:21 (2 months ago)
- Files:
-
- trunk/Solar/Sql/Select.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/Solar/Sql/Select.php
r3134 r3151 1186 1186 } 1187 1187 1188 // look for a DISTINCT setting 1189 $is_distinct = $select->_parts['distinct']; 1190 1188 1191 // look in the WHERE and HAVING clauses for a `COUNT` condition 1189 1192 $has_count_cond = $this->_hasCountCond($select->_parts['where']) || 1190 1193 $this->_hasCountCond($select->_parts['having']); 1191 1194 1192 // is there a count condition ?1193 if ($has_count_cond ) {1195 // is there a count condition or a distinct? 1196 if ($has_count_cond || $is_distinct) { 1194 1197 1195 1198 // count on a sub-select instead.
