| Conditions | 4 |
| Paths | 4 |
| Total Lines | 13 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 59 | private function getDistinctSyntax() |
||
| 60 | { |
||
| 61 | $useDistinct = $this->queryStructure->getElement( QueryStructure::DISTINCT ); |
||
| 62 | |||
| 63 | switch ( $useDistinct ) { |
||
| 64 | case 0: |
||
| 65 | return ''; |
||
| 66 | case 1: |
||
| 67 | return 'DISTINCT'; |
||
| 68 | case 2: |
||
| 69 | return 'DISTINCTROW'; |
||
| 70 | default: |
||
| 71 | throw new QueryException( 'Invalid distinct type', QueryException::QUERY_ERROR_INVALID_DISTINCT ); |
||
| 72 | } |
||
| 77 | } |