Created a Permission set name : John's ps
Query to be run : SELECT Id, Label FROM PermissionSet where label like 'John\'s ps'
Result : [object Object]: MALFORMED_QUERY: CustomPermissionSet WHERE Label LIKE 'John's ps' ^ ERROR at Row:1:Column:64 unexpected token: 's'
Similar Queries tried that works fine :
Query 1 : SELECT Id, label FROM PermissionSet WHERE Label = 'John\'s BBQ' , it gives proper result.
Query 2 : SELECT Id, label FROM PermissionSet WHERE Label like 'John%' , it gives proper result.
Any insights on why this is happening why LIKE when used with (') with a escape sequence is not working ?
=
operator, onlyLIKE
.