| Conditions | 4 |
| Paths | 4 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 24 | protected function getSql(array $parameters = array(), Connection $dbConnection = null, $indent = 0, $conditionsMode = self::CONDITION_APPLY) |
||
| 25 | { |
||
| 26 | $rightOperand = $this->getRightOperand(); |
||
| 27 | if ($rightOperand instanceof Parameter) { |
||
| 28 | if (!isset($parameters[$rightOperand->getName()])) { |
||
| 29 | throw new MagicQueryException("Missing parameter '" . $rightOperand->getName() . "' for 'IN' operand."); |
||
| 30 | } |
||
| 31 | if ($parameters[$rightOperand->getName()] === []) { |
||
| 32 | return "FALSE"; |
||
| 33 | } |
||
| 34 | } |
||
| 35 | |||
| 36 | return parent::getSql($parameters, $dbConnection, $indent, $conditionsMode); |
||
| 37 | } |
||
| 38 | } |
||
| 39 |