| Total Complexity | 2 |
| Total Lines | 19 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | class SqlServerGrammar extends Base implements EagerLimitGrammar |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * Compile an initial path. TODO |
||
| 11 | * |
||
| 12 | * @param string $column |
||
| 13 | * @return string |
||
| 14 | */ |
||
| 15 | public function compileFirstPathSegment($column) |
||
| 16 | { |
||
| 17 | $column = $this->wrap($column); |
||
| 18 | |||
| 19 | return "left($column, charindex(?, $column) - 1)"; |
||
| 20 | } |
||
| 21 | |||
| 22 | // TODO |
||
| 23 | public function getFirstPathSegmentBindings($pathSeparator) |
||
| 26 | } |
||
| 27 | } |
||
| 28 |