<div dir="ltr">Hi list,<br><br>I would like to define a map file layer with data coming from postgis and containing a (double) quoted postgis field and single quoted literals. <br>For example:<br><br>&nbsp;&nbsp;&nbsp; DATA &quot;way from (select * from planet_osm_polygon where landuse=&#39;reservoir&#39; or landuse=&#39;water&#39; or &quot;natural&quot; in (&#39;lake&#39;,&#39;water&#39;,&#39;land&#39;) order by z_order) as water using unique osm_id using srid = 28992&quot;<br>
<br>Reversing the single and double quotes does not work since postgresql needs double quotes around the &quot;natural&quot; column name. Doubling the quotes or using a back-slash does not work. Is it possible to escape double quotes in a map file?<br>
<br>Thanks,<br>John<br></div>