Skip to content

Commit d9f872a

Browse files
committed
Switched to using assignment by addition to append the where clause
1 parent 90307d8 commit d9f872a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/classes/QueryGenerator.cls

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public class QueryGenerator {
3333
'SELECT ' + String.join(new List<String>(this.queryFields), ', ')
3434
+ ' FROM ' + this.sobjectType;
3535

36-
if(!String.isEmpty(whereClause)) query = query + whereClause;
36+
if(!String.isEmpty(whereClause)) query += ' ' + whereClause;
3737

3838
return query;
3939
}

0 commit comments

Comments
 (0)