From: Wolfgang M. <wol...@ex...> - 2012-12-29 15:17:44
|
> @Override > public int returnsType() { > if(steps.isEmpty()) { > return Type.EMPTY; > } else { > return steps.get(steps.size() - 1).returnsType(); > } > } This seems like the best solution, but I'm not sure if it has any effects on the query optimizer, which relies on the type information. I just think there must have been a reason why Type.NODE is returned and not Type.EMPTY. I suggest I change the code locally for a while and see if it triggers something we can't overlook right now. Wolfgang |