Hi All,<br><br>I've already mentioned that when drawing the background in msDrawQueryLayer it happens by using the same OGR connection which invalidates the result set of the query. I've prepared a fix to handle this by establishing a CLOSE_CONNECTION=ALWAYS processing option which will provide that the connection is only available within a single request and will be closed immediately when connpoolrelease is called. The related patches can be found here:<br>
<br><a href="http://trac.osgeo.org/mapserver/attachment/ticket/3647/mappool.c.2.patch">http://trac.osgeo.org/mapserver/attachment/ticket/3647/mappool.c.2.patch</a><br><a href="http://trac.osgeo.org/mapserver/attachment/ticket/3647/mapdraw.c.patch">http://trac.osgeo.org/mapserver/attachment/ticket/3647/mapdraw.c.patch</a><br>
<br><br>Any objections to apply this in trunk?<br><br>Best regards,<br><br>Tamas<br><br><div style="visibility: hidden; left: -5000px; position: absolute; z-index: 9999; padding: 0px; margin-left: 0px; margin-top: 0px; overflow: hidden; word-wrap: break-word; color: black; font-size: 10px; text-align: left; line-height: 130%;" id="avg_ls_inline_popup">
</div>