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

Aggressive SQL predicate flattening may result in wrong parsing of SQL #8799

Closed
vbekiaris opened this issue Aug 27, 2016 · 1 comment

Comments

Projects
None yet
1 participant
@vbekiaris
Copy link
Contributor

commented Aug 27, 2016

Flattening during parsing SQL predicate (introduced in #8250) may result in erroneous predicate parsing. For example:

public class Record {
  private String str1,str2,str3;
  // getters & setters follow
}

Record r = new Record();
r.setStr1("ONE");
r.setStr2("TWO");
r.setStr3("THREE");

An SQLPredicate for predicate "str1 = 'ONE' AND str2 = 'TWO' AND (str3 = 'THREE' OR str3 = 'three')" will match object r in 3.6 but not in 3.7.

@vbekiaris

This comment has been minimized.

Copy link
Contributor Author

commented Aug 27, 2016

Fixed by #8798 (for 3.7.1) and #8794 (for master branch).

@vbekiaris vbekiaris closed this Aug 27, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.