sagarswathi / h2database

Automatically exported from code.google.com/p/h2database
0 stars 1 forks source link

Utils.sortTopN does not handle single-element arrays #439

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
This caused IllegalArgumentException in Utils.partialQuickSort when picking a 
random pivot.  I noticed this specifically in queries of the form: "SELECT 
column FROM table ORDER BY column".  Fix and unit test attached.

Original issue reported on code.google.com by g...@maginatics.com on 9 Feb 2013 at 11:11

Attachments:

GoogleCodeExporter commented 8 years ago
Thanks a lot! Yes, that's a bug, I will fix it.

Original comment by thomas.t...@gmail.com on 10 Feb 2013 at 3:00

GoogleCodeExporter commented 8 years ago
Should be fixed in H2 version 1.3.171

Original comment by thomas.t...@gmail.com on 17 Mar 2013 at 4:09