I've a "complicated" JOIN statement that features some custom column like "COUNT(a) AS ca".
Torque runtime fails on the
because it expects a full qualified table.columnName which is not the case for the example "ca" column.
The problem can be fixed by adapting the following functions (3.3-RC2):
removeSQLFunction(final String name) : name must not necessarily contain '.' or '*" thus replacing the first thrown exception with a "return name" fixes that issue
processOrderBy(...) : in the for loop, strippedColumnName must not contain '.' hence replacing the first thrown exception with "orderByColumn.add(orderByColumn); break;" fixes the issue
This are quick fixes and I guess you want to reconsider whether you want to implement it that way. After these two changes, it was working correctly though.
|Transition||Time In Source Status||Execution Times||Last Executer||Last Execution Date|
|1751d 8h 17m||1||Thomas Fox||30/Jan/12 18:21|
|237d 12h 45m||1||Thomas Fox||24/Sep/12 07:06|
|Status||Resolved [ 5 ]||Closed [ 6 ]|
|Status||Open [ 1 ]||Resolved [ 5 ]|
|Fix Version/s||4.0 [ 12312102 ]|
|Resolution||Fixed [ 1 ]|
|Field||Original Value||New Value|
|Assignee||Thomas Fischer [ tfischer ]|