Project

General

Profile

« Previous | Next » 

Revision 3484

Use sql_gen.RowType where %ROWTYPE was previously manually appended

View differences:

lib/sql.py
790 790
        if cols == None: row = [sql_gen.Col(sql_gen.all_cols, 'row')]
791 791
        else: row = [sql_gen.Col(c.name, 'row') for c in cols]
792 792
        
793
        query = sql_gen.RowExcIgnore(table.to_str(db)+'%ROWTYPE', select_query,
793
        query = sql_gen.RowExcIgnore(sql_gen.RowType(table), select_query,
794 794
'''\
795 795
RETURN QUERY
796 796
'''+strings.indent(mk_insert(sql_gen.Values(row).to_str(db)))+''';

Also available in: Unified diff