Revision 2243
Added by Aaron Marcuse-Kubitza over 12 years ago
lib/sql.py | ||
---|---|---|
859 | 859 |
else: |
860 | 860 |
conds[in_col] = sql_gen.CompareCond(None, '!=') |
861 | 861 |
# rerun loop with additional constraints |
862 |
except FunctionValueException, e: |
|
863 |
assert e.name == sql_gen.unescape_table(out_table) |
|
864 |
out_col = 'value' # assume function param was named "value" |
|
865 |
in_col = mapping[out_col] |
|
866 |
conds[in_col] = sql_gen.CompareCond(e.value, '!=') |
|
867 |
# rerun loop with additional constraints |
|
862 | 868 |
|
863 | 869 |
return (pkeys_ref[0], out_pkey) |
864 | 870 |
|
Also available in: Unified diff
sql.py: put_table(): Handle FunctionValueExceptions by excluding rows with the invalid value in their "value" column