Revision 3497
Added by Aaron Marcuse-Kubitza over 12 years ago
lib/sql.py | ||
---|---|---|
792 | 792 |
else: row = [sql_gen.Col(c.name, 'row') for c in cols] |
793 | 793 |
|
794 | 794 |
query = sql_gen.RowExcIgnore(sql_gen.RowType(table), select_query, |
795 |
'''\ |
|
796 |
RETURN QUERY |
|
797 |
'''+strings.indent(mk_insert(sql_gen.Values(row).to_str(db)))+'''; |
|
798 |
''' |
|
799 |
, cols) |
|
795 |
sql_gen.ReturnQuery(mk_insert(sql_gen.Values(row).to_str(db))), |
|
796 |
cols) |
|
800 | 797 |
else: query = mk_insert(select_query) |
801 | 798 |
|
802 | 799 |
if embeddable: |
Also available in: Unified diff
Use sql_gen.ReturnQuery where RETURN QUERY was previously manually prepended