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

Add support for >2 nested SOQL queries in SELECTS #47

Merged
merged 2 commits into from
Aug 29, 2024

Conversation

nwcm
Copy link
Contributor

@nwcm nwcm commented Aug 22, 2024

Allows higher depth of SOQL query child nesting. fixes #46

SELECT Name, 
  (SELECT Id, 
    (SELECT Id, 
      (SELECT Id, 
        (SELECT Id FROM Child4 ) 
      FROM Child3 ) 
    FROM Child2 ) 
  FROM Child1) 
FROM Parent

I had to update some of the build commands to have it correctly run. I'm not completely sure if the JAVA version is functioning

Copy link
Contributor

@pwrightcertinia pwrightcertinia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't see any problem, thanks for the report and the fix as well!


expect(context).toBeInstanceOf(QueryContext);
expect(errorCounter.getNumErrors()).toEqual(0);
});
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs a matching test for the JVM side but it's just a quick copy paste. I've already tried it locally and it's fine as this one demonstrates so I'll just do a quick follow up PR.

@pwrightcertinia pwrightcertinia merged commit df3171a into apex-dev-tools:main Aug 29, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Apex SOQL failed with >2 nested sub-queries
2 participants