Skip to content

Commit

Permalink
fix: Fixed issue of wrong query constructing #598
Browse files Browse the repository at this point in the history
  • Loading branch information
hknokh2 committed Jun 25, 2023
1 parent fe17182 commit 4effa7d
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/modules/components/common_components/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1157,10 +1157,9 @@ export class Common {
let whereValues = new Array<string>();
let parsedWhere: Query;
if (whereClause) {
parsedWhere = whereClause && parseQuery('SELECT Id FROM Account WHERE ' + whereClause);
parsedWhere.where.left.openParen = 1;
parsedWhere.where.left.closeParen = 1;

parsedWhere = whereClause && parseQuery('SELECT Id FROM Account WHERE (' + whereClause + ')');
//parsedWhere.where.left.openParen = 1;
//parsedWhere.where.left.closeParen = 1;
}


Expand Down

0 comments on commit 4effa7d

Please sign in to comment.