Skip to content

There is no NOT LIKE operator in SOQL #54

Description

@TrangOul

There is no NOT LIKE operator in SOQL.

The following fails on the query:

new Query(Account.SObjectType)
	.filterWhere(new SOQL.QueryFilter(Account.Name, SOQL.Operator.IS_NOT_LIKE, 'xyz'))
	.getResults()

The correct syntax is NOT Field__c LIKE 'value'.
Please either remove the SOQL.Operator.IS_NOT_LIKE operator or leave it as syntactic sugar, but with correct syntax, possibly as the negation of LIKE by making filters recursive and implementing the NOT operator (#53).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions