Revision 2534
Added by Aaron Marcuse-Kubitza over 12 years ago
lib/sql.py | ||
---|---|---|
1029 | 1029 |
log_exc(e) |
1030 | 1030 |
|
1031 | 1031 |
out_col = e.col |
1032 |
mapping[out_col] = sql_gen.FunctionCall(e.type, mapping[out_col])
|
|
1032 |
mapping[out_col] = sql_gen.wrap_in_func(e.type, mapping[out_col])
|
|
1033 | 1033 |
except DatabaseErrors, e: |
1034 | 1034 |
log_exc(e) |
1035 | 1035 |
|
Also available in: Unified diff
sql.py: put_table(): MissingCastException: Fixed bug where renaming of cast literal value was not properly propagated to the returned value of the function call, causing the query to assume that a DISTINCT ON column referred to column in one of the joined tables instead of a named column in the SELECT columns list. This logic error would have been very difficult to catch without inspecting the code!