Skip to content

Commit

Permalink
Fix calculation of SQL function parameters, also including context an…
Browse files Browse the repository at this point in the history
…d metadata values (eg. LET values)

Resolves: #8671
  • Loading branch information
luigidellaquila committed Nov 22, 2018
1 parent 35cb718 commit 03e724d
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,9 @@ record = current;
}
}
for (OExpression expr : this.params) {
if (record instanceof OIdentifiable) {
if(targetObjects instanceof OResult) {
paramValues.add(expr.execute((OResult) targetObjects, ctx));
}else if (record instanceof OIdentifiable) {
paramValues.add(expr.execute((OIdentifiable) record, ctx));
} else if (record instanceof OResult) {
paramValues.add(expr.execute((OResult) record, ctx));
Expand Down

0 comments on commit 03e724d

Please sign in to comment.