eXist-db/exist — pull request #20 by wolfgangmm (2013-08-03 16:57:31+00:00)
Title: XQuery optimizer fails on several types of expressions

XQuery optimizer fails to properly analyze:

* enclosed expressions in attributes
* default clause in switch and typeswitch
* try and catch clause in try/catch
* map constructor

This may lead to a massive performance loss for some complex queries. Added tests for all relevant XQuery expression types to make sure the optimizer analyzes them properly.