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

Fix CTE set operation builder end tracking #314

Closed
Mobe91 opened this issue Dec 14, 2016 · 0 comments
Closed

Fix CTE set operation builder end tracking #314

Mobe91 opened this issue Dec 14, 2016 · 0 comments
Assignees
Milestone

Comments

@Mobe91
Copy link
Contributor

Mobe91 commented Dec 14, 2016

The following scenario should actually throw an exception

CriteriaBuilder<?> cb = ...;

cb.with(MyCte.class)
      .from(Entity1.class)
      .bind("a").select("a")
   .exceptAll()
      .from(Entity2.class)
      .bind("a").select("a")
  .endSet();
cb.end();

end() has to be called on the builder returned by endSet() and not on the original FullSelectCTECriteriaBuilder. Currently, no exception is thrown in this scenario.

@Mobe91 Mobe91 added this to the 1.2.0 milestone Dec 14, 2016
@Mobe91 Mobe91 assigned Mobe91 and beikov and unassigned Mobe91 Dec 14, 2016
@beikov beikov closed this as completed in 909208f Jan 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants