Closed GoogleCodeExporter closed 9 years ago
I agree that it should return a list with 0 rather than an empty list. I am
accepting this though I have net yet written a test for it.
Original comment by dr.s.m.f...@gmail.com
on 10 Mar 2014 at 1:00
I have written a test which fails for the current code. There is also the case
of SELECT AVG(i.id) FROM Rule i which in SQL returns one result with value
null. Currently if no authz rule matches an empty list is returned. A fast
solution is to see if it is a COUNT query and return a list with 0 and for MIN,
MAX, SUM and AVG return a list with null. In fact you might expect SUM to
return 0 but both MySQL and Oracle return a list with null.
Original comment by dr.s.m.f...@gmail.com
on 9 Apr 2014 at 11:43
Original comment by dr.s.m.f...@gmail.com
on 9 Apr 2014 at 11:43
It turns out that JAX-WS does not handle returning a list of objects of length
1 holding a single null value. This potentially affects the results returned by
MIN, MAX, SUM and AVG. I could either return a list with, for example, and
empty string or return an empty list. There is no problem with COUNT. I have
changed the code to return an empty list to represent a list with one null.
This unfortunate behaviour will be documented.
Original comment by dr.s.m.f...@gmail.com
on 9 Apr 2014 at 3:39
Original comment by dr.s.m.f...@gmail.com
on 14 Jul 2014 at 12:52
Original issue reported on code.google.com by
rolf.kr...@helmholtz-berlin.de
on 3 Mar 2014 at 3:48