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

sum().negate() fails with OpenJPA #208

Closed
Maia-Everett opened this issue Jul 31, 2012 · 2 comments
Closed

sum().negate() fails with OpenJPA #208

Maia-Everett opened this issue Jul 31, 2012 · 2 comments

Comments

@Maia-Everett
Copy link

@Maia-Everett Maia-Everett commented Jul 31, 2012

Looks like the issue is caused by an extra space between "-" and "SUM". OpenJPA complains about unrecognized tokens in "- SUM".

timowest added a commit that referenced this issue Jul 31, 2012
@timowest
Copy link
Member

@timowest timowest commented Jul 31, 2012

The following pattern seems to work for OpenJPA

add(Ops.NEGATE, "-1 * {0}", 7);
@timowest
Copy link
Member

@timowest timowest commented Aug 4, 2012

Released in 2.7.2

@timowest timowest closed this Aug 4, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants