Skip to content

Commit

Permalink
Binding fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pgajek2 committed Jun 6, 2023
1 parent 4dbbe78 commit 65ae533
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion force-app/main/default/classes/SOQL.cls
Original file line number Diff line number Diff line change
Expand Up @@ -1161,12 +1161,16 @@ public inherited sharing class SOQL implements Queryable {
}

public override String toString() {
if (binder == null || TYPES_WITHOUT_BINDING.contains(fieldType)) {
if (buildWithoutBinding()) {
return field + ' ' + comperator + ' ' + value;
}

return field + ' ' + comperator + ' :' + binder.bind(value);
}

private Boolean buildWithoutBinding() {
return binder == null || (fieldType != null && TYPES_WITHOUT_BINDING.contains(fieldType));
}
}

private class QJoinQuery implements InnerJoin {
Expand Down

1 comment on commit 65ae533

@vercel
Copy link

@vercel vercel bot commented on 65ae533 Jun 6, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.