Skip to content

Commit

Permalink
Use the new query method in PullDataFunctionHandler
Browse files Browse the repository at this point in the history
  • Loading branch information
grzesiek2010 committed Dec 12, 2024
1 parent b2d2588 commit a5eba56
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ class PullDataFunctionHandler(
val filterChild = XPathFuncExpr.toString(args[2])
val filterValue = XPathFuncExpr.toString(args[3])

instanceAdapter.queryEq(instanceId, filterChild, filterValue).firstOrNull()
val selection = "$filterChild = ?"
val selectionArgs = arrayOf(filterValue)
instanceAdapter.query(instanceId, selection, selectionArgs).firstOrNull()
?.getFirstChild(child)?.value?.value ?: ""
} else {
fallback?.eval(args, ec) ?: ""
Expand Down

0 comments on commit a5eba56

Please sign in to comment.