<div dir="ltr">Hi there,<div><br></div><div>I couldn't figure out how to solve this. I have a layer so configured:</div><div><br></div><div><div>LAYER</div><div>      NAME "layer"</div><div>      TYPE point</div>

<div>      CONNECTION "conn_string...."</div><div>      CONNECTIONTYPE ORACLESPATIAL</div><div>      TEMPLATE     "templates/hotspot_template.html"</div><div>      DATA "SHAPE FROM (SELECT POINT as SHAPE, ACQ_DATE, ACQ_TIME, SATELLITE, CONFIDENCE, VERSION, BRIGHT_T31, FRP FROM gwsprd.HOT_SPOTS_MODIS) using unique OGR_FID"</div>

<div>      METADATA</div><div>            "wms_title"             "WMS test"</div><div>            "wms_srs"               "EPSG:4326"</div><div>            "wms_extent"            "-180 -90 180 90"</div>

<div>            "wms_timeextent" "2000-01-01/2020-12-31"</div><div>            "wms_timeitem" "acq_date"</div><div>            "wms_timedefault" "2014-01-01"</div>

<div>            "wms_timeformat" "YYYY-MM-DD"</div><div>            "wms_enable_request" "*"</div><div>        END</div><div><span class="" style="white-space:pre">       </span>CLASS</div>

<div>            SYMBOL 'circle'</div><div>            SIZE 2</div><div>            COLOR        255 0 0</div><div>        END</div><div>    END</div></div><div><br></div><div><br></div><div><br></div><div>Now, the date column in the oracle table is the acq_date field.</div>

<div><br></div><div><br></div><div>The problem is that Mapserver translates that with a wrong oracle query (which it works in postgreslq, I guess):</div><div><br></div><div><div>SELECT OGR_FID,rownum, SHAPE FROM </div><div>

(SELECT OGR_FID, POINT as SHAPE,  ACQ_DATE, ACQ_TIME, SATELLITE, CONFIDENCE, VERSION, BRIGHT_T31, FRP FROM gwsprd.HOT_SPOTS_MODIS) </div><div>WHERE  acq_date = '2014-01-16'</div></div><div><br></div><div><br></div>

<div>The query above uses a wrong filter and it gives the error:</div><div><br></div><div>ORA-01861: literal does not match format string<br></div><div><br></div><div><br></div><div>How can I tell to Mapserver to use a correct query??? Or do I missing anyhting???</div>

<div>Something like:</div><div><br></div><div>WHERE acq_date = to_date('2014-01-16','YYYY-MM-DD')</div></div>