Revision 7117
Added by Aaron Marcuse-Kubitza about 12 years ago
lib/sql_io.py | ||
---|---|---|
497 | 497 |
sql.table_col_names(db, out_table))) |
498 | 498 |
|
499 | 499 |
in_cols = [] |
500 |
cond = strings.ustr(cond) |
|
500 | 501 |
orig_cond = cond |
501 | 502 |
cond = sql_gen.map_expr(db, cond, mapping, in_cols) |
502 | 503 |
if not is_function: |
... | ... | |
525 | 526 |
if failed or cur != None and cur.rowcount > 0: |
526 | 527 |
track_data_error(db, errors_table_, |
527 | 528 |
sql_gen.cross_join_srcs(in_cols), None, e.cause.pgcode, |
528 |
strings.ensure_newl(e.cause.pgerror)+'condition: '+orig_cond
|
|
529 |
+'\ntranslated condition: '+cond) |
|
529 |
strings.ensure_newl(strings.ustr(e.cause.pgerror))
|
|
530 |
+'condition: '+orig_cond+'\ntranslated condition: '+cond)
|
|
530 | 531 |
|
531 | 532 |
not_null_cols = set() |
532 | 533 |
def ignore(in_col, value, e): |
Also available in: Unified diff
sql_io.py: put_table(): ensure_cond(): Fixed bug where need to wrap strings used in the tracked error message in strings.ustr()