public function toSQL(Parameters $params, bool $inner_clause)
    {
        $scope = $params->getSubScope($this->scope_id);
        $this->scope_id = $scope->getScopeID();

        $q = $this->getQuery();
        return '(' . $params->getDriver()->toSQL($scope, $q, false) . ')';
    }
public function toSQL(Parameters $params, bool $inner_clause)
    {
        $scope = $params->getSubScope($this->scope_id);
        $this->scope_id = $scope->getScopeID();

        $q = $this->getQuery();
        return '(' . $params->getDriver()->toSQL($scope, $q, false) . ')';
    }
public function toSQL ( Parameters $ params , bool $ inner_clause ) { $ scope = $ params -> getSubScope ( $ this -> scope_id ) ; $ this -> scope_id = $ scope -> getScopeID ( ) ; $ q = $ this -> getQuery ( ) ; return '(' . $ params -> getDriver ( ) -> toSQL ( $ scope , $ q , false ) . ')' ; }
Write a sub query as SQL query syntax
@param Parameters $params The query parameters: tables and placeholder values
@param SubQuery $query The query to write
@return string The generated SQL
Write a sub query as SQL query syntax