public function toSQL(Parameters $params, bool $inner_clause)
    {
        $q = $this->getQuery();
        $t = $this->getType();
        
        $scope = $params->getSubScope($this->sub_scope_number);
        $this->sub_scope_number = $scope->getScopeID();
        return 'UNION ' . $t . ' (' . $params->getDriver()->toSQL($scope, $q) . ')';
    }
public function toSQL(Parameters $params, bool $inner_clause)
    {
        $q = $this->getQuery();
        $t = $this->getType();
        
        $scope = $params->getSubScope($this->sub_scope_number);
        $this->sub_scope_number = $scope->getScopeID();
        return 'UNION ' . $t . ' (' . $params->getDriver()->toSQL($scope, $q) . ')';
    }
public function toSQL ( Parameters $ params , bool $ inner_clause ) { $ q = $ this -> getQuery ( ) ; $ t = $ this -> getType ( ) ; $ scope = $ params -> getSubScope ( $ this -> sub_scope_number ) ; $ this -> sub_scope_number = $ scope -> getScopeID ( ) ; return 'UNION ' . $ t . ' (' . $ params -> getDriver ( ) -> toSQL ( $ scope , $ q ) . ')' ; }
Write a UNION clause as SQL query synta
@param Parameters $params The query parameters: tables and placeholder values
@param bool $inner_clause Unused
@return string The generated SQL
Write a UNION clause as SQL query synta