<br><font size=2 face="sans-serif">Hi Emmanuell</font>
<br>
<br><font size=2 face="sans-serif">If your project is stuck with this problem:
In cases like this, I always try to avoid long SQL-statements in mapfiles</font>
<br><font size=2 face="sans-serif">anyway. Instead I put the complexity
in a &nbsp;view and use in the mapfile just this view.</font>
<br>
<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 10.09.2007 18:28:00:<br>
<br>
&gt; Hi Fernando,<br>
&gt; <br>
&gt; thank you for investigating. We need this for a project, where it
is not<br>
&gt; possible to use PostGIS.<br>
&gt; <br>
&gt; Do you have an idea how long it would take to fix the problem? Can
we<br>
&gt; help you in some manner?<br>
&gt; <br>
&gt; Best regards,<br>
&gt; <br>
&gt; Emmanuel<br>
&gt; <br>
&gt; <br>
&gt; <br>
&gt; <br>
&gt; <br>
&gt; Fernando Simon wrote:<br>
&gt; &gt; Hi all,<br>
&gt; &gt; &nbsp; &nbsp;I will investigate the problem. I believe that it's
relate with the<br>
&gt; &gt; msSplitData function in the driver source code.<br>
&gt; &gt; &nbsp; &nbsp;Thanks for the reply about the error.<br>
&gt; &gt; &nbsp; &nbsp;Best regards.<br>
&gt; &gt; <br>
&gt; &gt; ---------------------------------------------------------<br>
&gt; &gt; Fernando Simon<br>
&gt; &gt; UMN Mapserver and Oracle Spatial developer<br>
&gt; &gt; <br>
&gt; &gt; Emmanuel BELO wrote:<br>
&gt; &gt;&gt; After some investigation, we could identify that this occurs
only with<br>
&gt; &gt;&gt; an Oracle connector. It's not reproducible with a PostGIS
connection.<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; Here our testcase outline:<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; &nbsp; LAYER<br>
&gt; &gt;&gt; &nbsp; &nbsp; CONNECTION &quot;user/password@myoracleoracle9instance&quot;<br>
&gt; &gt;&gt; &nbsp; &nbsp; CONNECTIONTYPE ORACLESPATIAL<br>
&gt; &gt;&gt; &nbsp; &nbsp; DATA &quot;[Put a query larger than 2037 characters
here]&quot;<br>
&gt; &gt;&gt; &nbsp; &nbsp; &nbsp; METADATA<br>
&gt; &gt;&gt; &nbsp; &nbsp; &nbsp; END<br>
&gt; &gt;&gt; &nbsp; &nbsp; NAME &quot;oracle_test_layer&quot;<br>
&gt; &gt;&gt; &nbsp; &nbsp; PROJECTION<br>
&gt; &gt;&gt; &nbsp; &nbsp; &nbsp; &quot;init=epsg:4326&quot;<br>
&gt; &gt;&gt; &nbsp; &nbsp; END<br>
&gt; &gt;&gt; &nbsp; &nbsp; SIZEUNITS PIXELS<br>
&gt; &gt;&gt; &nbsp; &nbsp; STATUS ON<br>
&gt; &gt;&gt; &nbsp; &nbsp; TOLERANCEUNITS PIXELS<br>
&gt; &gt;&gt; &nbsp; &nbsp; TYPE POLYGON<br>
&gt; &gt;&gt; &nbsp; &nbsp; UNITS METERS<br>
&gt; &gt;&gt; &nbsp; &nbsp; CLASS<br>
&gt; &gt;&gt; &nbsp; &nbsp; &nbsp; METADATA<br>
&gt; &gt;&gt; &nbsp; &nbsp; &nbsp; END<br>
&gt; &gt;&gt; &nbsp; &nbsp; &nbsp; STYLE<br>
&gt; &gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; ANGLE 360<br>
&gt; &gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; OUTLINECOLOR 255 0 0<br>
&gt; &gt;&gt; &nbsp; &nbsp; &nbsp; END<br>
&gt; &gt;&gt; &nbsp; &nbsp; END<br>
&gt; &gt;&gt; &nbsp; END<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; You can build a large sql query by adding a lot of &quot;always
true&quot;<br>
&gt; &gt;&gt; clauses, or by padding it with a lot of spaces<br>
&gt; &gt;&gt; eg. shape from (select shape from my_table where 'djfksdhfjkdsf'
=<br>
&gt; &gt;&gt; 'djfksdhfjkdsf' and 'djfksdhfjkdsf' = 'djfksdhfjkdsf' [...])<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; Best regards,<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; Emmanuel BELO<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; Damien Corpataux wrote:<br>
&gt; &gt;&gt; &nbsp;<br>
&gt; &gt;&gt;&gt; Hello List,<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt; I ran into memory corrption with a long sql query in
the DATA object,<br>
&gt; &gt;&gt;&gt; for an Oracle LAYER. It is obviously due to Mapserver
memory allocation<br>
&gt; &gt;&gt;&gt; mechanism. The corruption occurs when the DATA is longer
than ca. 2037<br>
&gt; &gt;&gt;&gt; characters.<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt; Do you know if Mapserver has a way of modifying the possible
allocated<br>
&gt; &gt;&gt;&gt; memory limit? In header files? By applying a patch?<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt; Any idea is welcome!<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt; Thanks in advance, regards,<br>
&gt; &gt;&gt;&gt; Damien Corpataux<br>
&gt; &gt;&gt;&gt; &nbsp; &nbsp; <br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; &nbsp; <br>
&gt; &gt; <br>
&gt; <br>
&gt; -- <br>
&gt; Camptocamp SA<br>
&gt; Emmanuel BELO<br>
&gt; PSE A<br>
&gt; CH-1015 Lausanne<br>
&gt; <br>
&gt; +41 21 619 10 25 (direct)<br>
&gt; +41 21 619 10 10 (centrale)<br>
&gt; +41 21 619 10 00 (fax)<br>
</font></tt>