Revision 3608
Added by Aaron Marcuse-Kubitza over 12 years ago
csv2db | ||
---|---|---|
79 | 79 |
if col == '': col_names[i] = 'column_'+str(i) |
80 | 80 |
|
81 | 81 |
# Select schema and escape names |
82 |
def esc_name(name): return sql.esc_name(db, name)
|
|
82 |
def esc_name(name): return db.esc_name(name)
|
|
83 | 83 |
|
84 | 84 |
typed_cols = [sql_gen.TypedCol('row_num', 'serial', nullable=False)]+[ |
85 | 85 |
sql_gen.TypedCol(v, 'text') for v in col_names] |
Also available in: Unified diff
csv2db: esc_name(): Use db.esc_name()