def compile(self, node, select_format=False):
    vendor_impl = getattr(node, ('as_' + self.connection.vendor), None)
    if vendor_impl:
        (sql, params) = vendor_impl(self, self.connection)
    else:
        (sql, params) = node.as_sql(self, self.connection)
    if (select_format and (not self.subquery)):
        return node.output_field.select_format(self, sql, params)
    return (sql, params)
def compile(self, node, select_format=False):
    vendor_impl = getattr(node, ('as_' + self.connection.vendor), None)
    if vendor_impl:
        (sql, params) = vendor_impl(self, self.connection)
    else:
        (sql, params) = node.as_sql(self, self.connection)
    if (select_format and (not self.subquery)):
        return node.output_field.select_format(self, sql, params)
    return (sql, params)