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

A small bug in uniqueResult() + resolution #4

Closed
GoogleCodeExporter opened this issue Aug 23, 2015 · 3 comments
Closed

A small bug in uniqueResult() + resolution #4

GoogleCodeExporter opened this issue Aug 23, 2015 · 3 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Try a query that returns a ResultSet with a single item
2. call uniqueResult() on that query
3. an exception is thrown saying that the ResultSet has multiple items

What is the expected output? What do you see instead?
The single item should be returned

What version of the product are you using? On what operating system?
latest from svn, XP

Please provide any additional information below.

in ResultSet.java, line 58 should be:
O result = iterator.next();
instead of:
O result = iterator().next();

Original issue reported on code.google.com by gil.assa...@gmail.com on 29 Oct 2012 at 1:15

@GoogleCodeExporter
Copy link
Author

Thanks, and especially for including the resolution. Fixed in SVN. The next 
release is also in the works, your fix will be included and deployed to maven 
central soon.

Original comment by ni...@npgall.com on 29 Oct 2012 at 1:48

@GoogleCodeExporter
Copy link
Author

Original comment by ni...@npgall.com on 29 Oct 2012 at 1:49

  • Changed state: Accepted

@GoogleCodeExporter
Copy link
Author

Fixed in version 1.0.0. This is available in the Downloads tab, and is queued 
for sync with Maven central, it should appear there in a few hours.

Original comment by ni...@npgall.com on 29 Oct 2012 at 10:00

  • Changed state: Fixed

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

No branches or pull requests

2 participants