#NEWLINE# def returning_clause( self , stmt , returning_cols ) : #NEWLINE# #INDENT# if ( self . isinsert or self . isupdate ) : #NEWLINE# #INDENT# target = stmt . table . alias ( 'inserted' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# target = stmt . table . alias ( 'deleted' ) #NEWLINE# #UNINDENT# adapter = sql_util . ClauseAdapter ( target ) #NEWLINE# columns = [ self . _label_select_column ( None , adapter . traverse ( c ) , True , False , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) for c in expression . _select_iterables ( returning_cols ) ] #NEWLINE# return ( 'OUTPUT ' + ', ' . join ( columns ) )