Revision 140
Added by Aaron Marcuse-Kubitza about 13 years ago
map | ||
---|---|---|
104 | 104 |
xml_dom.replace(root, root.cloneNode(False)) |
105 | 105 |
xml_dom.set_id(root, row_id) |
106 | 106 |
|
107 |
cur = db_xml.get(in_db, in_, in_pkeys) |
|
108 |
try: value = sql.value(cur) |
|
109 |
except StopIteration: continue |
|
110 |
put_col(out, str(value)) |
|
107 |
value = sql.value_or_none(db_xml.get(in_db, in_, in_pkeys)) |
|
108 |
if value != None: put_col(out, str(value)) |
|
111 | 109 |
in_db.close() |
112 | 110 |
elif in_is_xml: raise SystemExit('XML input not supported yet') |
113 | 111 |
else: # input is CSV |
Also available in: Unified diff
Fixed DB input to ignore NULL values