[bugfix] when called repeatedly, e.g. in a recursive query or a nested for loop, the XQuery optimizer caused wrong query results and killed performance!
[bugfix] when called repeatedly, e.g. in a recursive query or a nested for loop, the XQuery optimizer caused wrong query results and killed performance!

svn path=/trunk/eXist/; revision=7580

lcahlander/exist,kohsah/exist,joewiz/exist,opax/exist,MjAbuz/exist,lcahlander/exist,ambs/exist,dizzzz/exist,RemiKoutcherawy/exist,shabanovd/exist,lcahlander/exist,eXist-db/exist,ljo/exist,dizzzz/exist,RemiKoutcherawy/exist,hungerburg/exist,zwobit/exist,ambs/exist,adamretter/exist,wshager/exist,wshager/exist,MjAbuz/exist,opax/exist,jensopetersen/exist,eXist-db/exist,opax/exist,RemiKoutcherawy/exist,shabanovd/exist,kohsah/exist,ljo/exist,wshager/exist,jessealama/exist,lcahlander/exist,windauer/exist,jensopetersen/exist,lcahlander/exist,ljo/exist,joewiz/exist,MjAbuz/exist,patczar/exist,ljo/exist,windauer/exist,zwobit/exist,hungerburg/exist,olvidalo/exist,hungerburg/exist,eXist-db/exist,wolfgangmm/exist,joewiz/exist,jensopetersen/exist,ambs/exist,windauer/exist,opax/exist,hungerburg/exist,shabanovd/exist,olvidalo/exist,dizzzz/exist,windauer/exist,wolfgangmm/exist,shabanovd/exist,jessealama/exist,patczar/exist,wshager/exist,olvidalo/exist,MjAbuz/exist,wolfgangmm/exist,ambs/exist,patczar/exist,jensopetersen/exist,lcahlander/exist,joewiz/exist,ljo/exist,RemiKoutcherawy/exist,adamretter/exist,olvidalo/exist,jessealama/exist,kohsah/exist,eXist-db/exist,jensopetersen/exist,eXist-db/exist,kohsah/exist,MjAbuz/exist,patczar/exist,wshager/exist,kohsah/exist,RemiKoutcherawy/exist,hungerburg/exist,wolfgangmm/exist,joewiz/exist,windauer/exist,ambs/exist,zwobit/exist,ljo/exist,dizzzz/exist,kohsah/exist,adamretter/exist,zwobit/exist,shabanovd/exist,jessealama/exist,dizzzz/exist,shabanovd/exist,wolfgangmm/exist,opax/exist,adamretter/exist,adamretter/exist,zwobit/exist,wolfgangmm/exist,windauer/exist,ambs/exist,patczar/exist,jessealama/exist,MjAbuz/exist,jensopetersen/exist,wshager/exist,patczar/exist,adamretter/exist,jessealama/exist,joewiz/exist,dizzzz/exist,eXist-db/exist,RemiKoutcherawy/exist,olvidalo/exist,zwobit/exist