Revision 2743
Added by Aaron Marcuse-Kubitza over 12 years ago
lib/sql.py | ||
---|---|---|
603 | 603 |
query += '\n'+select_query |
604 | 604 |
|
605 | 605 |
if returning != None: |
606 |
returning_name = copy.copy(returning) |
|
607 |
returning_name.table = None |
|
608 |
returning_name = returning_name.to_str(db) |
|
609 |
query += '\nRETURNING '+returning_name |
|
606 |
query += '\nRETURNING '+sql_gen.to_name_only_col(returning).to_str(db) |
|
610 | 607 |
|
611 | 608 |
if embeddable: |
612 | 609 |
assert returning != None |
Also available in: Unified diff
sql.py: mk_insert_select(): returning: Use sql_gen.to_name_only_col()