Revision 2926
Added by Aaron Marcuse-Kubitza over 12 years ago
csv2db | ||
---|---|---|
116 | 116 |
row = map(strings.to_unicode, row) |
117 | 117 |
row.insert(0, sql.default) # row_num is autogen |
118 | 118 |
util.list_set_length(row, cols_ct) # truncate extra cols |
119 |
sql.insert(db, table, row, log_level=4)
|
|
119 |
sql.insert(db, table, row, log_level=5)
|
|
120 | 120 |
finally: |
121 | 121 |
line_in.close() # also closes proc.stdout |
122 | 122 |
proc.wait() |
Also available in: Unified diff
csv2db: Log inserts with log_level=5 so they are not shown for verbosity 4, which is used to see the savepoints and autocommits