#753 - @History "as of" query errors when executed a second time - invalid bind parameter

This commit is contained in:
Robin Bygrave
2016-06-28 06:46:16 +12:00
parent 1f9ccf1c8b
commit 697f67c14a
2 changed files with 9 additions and 1 deletions
@@ -136,7 +136,7 @@ public class CQueryPredicates {
dataBind.append(", ");
}
int asOfTableCount = query.getAsOfTableCount();
int asOfTableCount = request.getQueryPlan().getAsOfTableCount();
if (asOfTableCount > 0) {
// bind the asOf value for each table alias as part of the from/join clauses
// there is one effective date predicate per table alias