tmlab / tmql

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

robuster fn:uniq function #26

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
If a expression inside a fn:uniq() call returns no result a Error occurs:
de.topicmapslab.tmql4j.exception.TMQLRuntimeException: fn:uniq() requieres 1 
parameters

Which is misleading as one would expect a empty result returned by the function

Original issue reported on code.google.com by michael....@gmail.com on 19 Jan 2011 at 4:02

GoogleCodeExporter commented 9 years ago
In normal case, there are not any functions which returns no results.

Can you post an example query with the corresponding topic map? 

Original comment by Sven.Kro...@googlemail.com on 20 Jan 2011 at 5:53

GoogleCodeExporter commented 9 years ago
fn:uniq( tm:subject >> instances << players >> scope )

on pokemon it causes above exception:
http://maiana-dev.topicmapslab.de/u/michael/query/pokemon/tmql/exec?query=fn%253
Auniq%28%2520tm%253Asubject%2520%253E%253E%2520instances%2520%253C%253C%2520play
ers%2520%253E%253E%2520scope%2520%29

but the Query works on toytm:
http://maiana-dev.topicmapslab.de/u/michael/query/toytm/tmql/exec?query=fn%253Au
niq%28%2520tm%253Asubject%2520%253E%253E%2520instances%2520%253C%253C%2520player
s%2520%253E%253E%2520scope%2520%29

Original comment by michael....@gmail.com on 20 Jan 2011 at 12:26

GoogleCodeExporter commented 9 years ago

Original comment by Sven.Kro...@googlemail.com on 20 Jan 2011 at 12:39

GoogleCodeExporter commented 9 years ago

Original comment by Sven.Kro...@googlemail.com on 20 Jan 2011 at 12:54