Project

General

Profile

« Previous | Next » 

Revision 3128

sql_gen.py: suffixed_table(): Fixed bug where needed to copy all table attrs, such as is_temp status

View differences:

lib/sql_gen.py
190 190
    else: return Table(table, schema)
191 191

  
192 192
def suffixed_table(table, suffix):
193
    return Table(concat(table.name, suffix), table.schema)
193
    table = copy.copy(table) # don't modify input!
194
    table.name = concat(table.name, suffix)
195
    return table
194 196

  
195 197
class NamedTable(Table):
196 198
    def __init__(self, name, code, cols=None):

Also available in: Unified diff