framework/db/sqlite/conditions/InConditionBuilder.php
protected function buildCompositeInCondition($operator, $columns, $values, &$params)
    {
        $quotedColumns = [];
        foreach ($columns as $i => $column) {
            $quotedColumns[$i] = strpos($column, '(') === false ? $this->queryBuilder->db->quoteColumnName($column) : $column;
        }
        $vss = [];
        foreach ($values as $value) {
            $vs = [];
            foreach ($columns as $i => $column) {
                if (isset($value[$column])) {
                    $phName = $this->queryBuilder->bindParam($value[$column], $params);
                    $vs[] = $quotedColumns[$i] . ($operator === 'IN' ? ' = ' : ' != ') . $phName;
                } else {
                    $vs[] = $quotedColumns[$i] . ($operator === 'IN' ? ' IS' : ' IS NOT') . ' NULL';
                }
            }
            $vss[] = '(' . implode($operator === 'IN' ? ' AND ' : ' OR ', $vs) . ')';
        }

        return '(' . implode($operator === 'IN' ? ' OR ' : ' AND ', $vss) . ')';
    }
protected function buildCompositeInCondition($operator, $columns, $values, &$params)
    {
        $quotedColumns = [];
        foreach ($columns as $i => $column) {
            $quotedColumns[$i] = strpos($column, '(') === false ? $this->queryBuilder->db->quoteColumnName($column) : $column;
        }
        $vss = [];
        foreach ($values as $value) {
            $vs = [];
            foreach ($columns as $i => $column) {
                if (isset($value[$column])) {
                    $phName = $this->queryBuilder->bindParam($value[$column], $params);
                    $vs[] = $quotedColumns[$i] . ($operator === 'IN' ? ' = ' : ' != ') . $phName;
                } else {
                    $vs[] = $quotedColumns[$i] . ($operator === 'IN' ? ' IS' : ' IS NOT') . ' NULL';
                }
            }
            $vss[] = '(' . implode($operator === 'IN' ? ' AND ' : ' OR ', $vs) . ')';
        }

        return '(' . implode($operator === 'IN' ? ' OR ' : ' AND ', $vss) . ')';
    }
protected function buildCompositeInCondition ( $ operator , $ columns , $ values , & $ params ) { $ quotedColumns = [ ] ; foreach ( $ columns as $ i => $ column ) { $ quotedColumns [ $ i ] = strpos ( $ column , '(' ) === false ? $ this -> queryBuilder -> db -> quoteColumnName ( $ column ) : $ column ; } $ vss = [ ] ; foreach ( $ values as $ value ) { $ vs = [ ] ; foreach ( $ columns as $ i => $ column ) { if ( isset ( $ value [ $ column ] ) ) { $ phName = $ this -> queryBuilder -> bindParam ( $ value [ $ column ] , $ params ) ; $ vs [ ] = $ quotedColumns [ $ i ] . ( $ operator === 'IN' ? ' = ' : ' != ' ) . $ phName ; } else { $ vs [ ] = $ quotedColumns [ $ i ] . ( $ operator === 'IN' ? ' IS' : ' IS NOT' ) . ' NULL' ; } } $ vss [ ] = '(' . implode ( $ operator === 'IN' ? ' AND ' : ' OR ' , $ vs ) . ')' ; } return '(' . implode ( $ operator === 'IN' ? ' OR ' : ' AND ' , $ vss ) . ')' ; }
{@inheritdoc}
{