Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Date Literals In "IN" Operator #125

Open
ZackFra opened this issue Dec 30, 2024 · 0 comments
Open

[FEATURE] Date Literals In "IN" Operator #125

ZackFra opened this issue Dec 30, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@ZackFra
Copy link
Owner

ZackFra commented Dec 30, 2024

Describe the solution you'd like
When using date literals with the "IN" operator, this should successfully apply the date literal to it.

e.g.

Opportunity opp = new Opportunity(
  CloseDate = Gmt.today()
);
DML.doInsert(opp, true);
List<Opportunity> queriedOpportunities = Selector.query('SELECT Id FROM Opportunity WHERE CloseDate IN (TODAY, YESTERDAY, TOMORROW)');

Assert.areEqual(1, queriedOpportunities.size(), 'Expected 1 opportunity to be found');
@ZackFra ZackFra added the enhancement New feature or request label Dec 30, 2024
@ZackFra ZackFra added this to Moxygen Dec 30, 2024
@ZackFra ZackFra moved this to Product Backlog in Moxygen Dec 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Product Backlog
Development

No branches or pull requests

1 participant