#NEWLINE# def _compile_union( self , union ) : #NEWLINE# #INDENT# if union [ 'all' ] : #NEWLINE# #INDENT# joiner = ' UNION ALL ' #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# joiner = ' UNION ' #NEWLINE# #UNINDENT# return ( '%s%s' % ( joiner , union [ 'query' ] . to_sql ( ) ) )