protected function processInsertFromSelect(InsertFromSelect $row, $context): InsertFromSelect
    {
        if ($row->columns === null) {
            $columns = null;
        } else {
            $columns = [];
            foreach ($row->columns as $index => $column) {
                $columns[$index] = $this->processColumnName($column, $context);
            }
        }
        $selectQuery = $this->processSubQuery($row->selectQuery, $context);

        if ($selectQuery === $row->selectQuery && $columns === $row->columns) {
            return $row;
        } else {
            return new InsertFromSelect($columns, $selectQuery);
        }
    }
protected function processInsertFromSelect(InsertFromSelect $row, $context): InsertFromSelect
    {
        if ($row->columns === null) {
            $columns = null;
        } else {
            $columns = [];
            foreach ($row->columns as $index => $column) {
                $columns[$index] = $this->processColumnName($column, $context);
            }
        }
        $selectQuery = $this->processSubQuery($row->selectQuery, $context);

        if ($selectQuery === $row->selectQuery && $columns === $row->columns) {
            return $row;
        } else {
            return new InsertFromSelect($columns, $selectQuery);
        }
    }
protected function processInsertFromSelect ( InsertFromSelect $ row , $ context ) : InsertFromSelect { if ( $ row -> columns === null ) { $ columns = null ; } else { $ columns = [ ] ; foreach ( $ row -> columns as $ index => $ column ) { $ columns [ $ index ] = $ this -> processColumnName ( $ column , $ context ) ; } } $ selectQuery = $ this -> processSubQuery ( $ row -> selectQuery , $ context ) ; if ( $ selectQuery === $ row -> selectQuery && $ columns === $ row -> columns ) { return $ row ; } else { return new InsertFromSelect ( $ columns , $ selectQuery ) ; } }
Processes a single "insert from select" statement.

@param InsertFromSelect $row
@param mixed $context The processing context
@return InsertFromSelect
Processes a single insert from select statement .