<br><font size=2 face="sans-serif">Hi Mauro</font>
<br>
<br><font size=2 face="sans-serif">Problably there is a kind of mapserver
bug. &nbsp;As far as I know</font>
<br><font size=2 face="sans-serif">maspserver-oracle supports a maximum
of 6000 chars for SQL-statement</font>
<br><font size=2 face="sans-serif">and the code doesn't handle overflow's
gracefully.</font>
<br>
<br><font size=2 face="sans-serif">On the other hand: Even if mapserver
could handle SQL-strings of</font>
<br><font size=2 face="sans-serif">arbitrary length, you still have to
deal with the Oracle-Limit</font>
<br><font size=2 face="sans-serif">of 1000 elements in the &quot;CODE IN
(...)&quot;-Expression.</font>
<br><font size=2 face="sans-serif">(http://download-uk.oracle.com/docs/cd/A87861_01/NT817EE/server.817/a85397/expressi.htm#1029285)</font>
<br>
<br><font size=2 face="sans-serif">Maybe you are forced to look for a different
approach anyway?</font>
<br>
<br><font size=2 face="sans-serif">By</font>
<br><font size=2 face="sans-serif">Benedikt Rothe</font>
<br>
<br><tt><font size=2>UMN MapServer Users List &lt;MAPSERVER-USERS@LISTS.UMN.EDU&gt;
schrieb am 11.10.2007 19:48:36:<br>
<br>
&gt; Hi list<br>
&gt; <br>
&gt; I am using mapserver 5.0 with java mapscript.<br>
&gt; I use oracle spatial 10g.<br>
&gt; I have problems with long string (longer then 2k)<br>
&gt; used to specify complex data sql connection query or filter.<br>
&gt; When mapscript execute for instance setFilter it crashes.<br>
&gt; I suspect there is a general issue with long string.<br>
&gt; The same string used directly in the mapfile works correctly.<br>
&gt; It is probably a mapscript memory allocation problem.<br>
&gt; While I can use an oracle view to avoide the problem for the <br>
&gt; connection query, I do not know how to avoide it with the filter,
<br>
&gt; because it is known only at run time.<br>
&gt; The filter can be something like: <br>
&gt; CODE IN ('1','2','3'....very long string ... '1000')<br>
&gt; <br>
&gt; Can this be set as a bug?<br>
&gt; <br>
&gt; Thank you for any suggestion<br>
&gt; <br>
&gt; Mauro Sartori<br>
&gt; <br>
&gt; <br>
&gt; <br>
&gt; ------------------------------------------------------<br>
&gt; Leggi GRATIS le tue mail con il telefonino i-mode&#8482; di Wind<br>
&gt; http://i-mode.wind.it/<br>
&gt; <br>
</font></tt>