{"action":"created","issue":{"url":"https://api.github.com/repos/mapserver/mapserver/issues/5030","labels_url":"https://api.github.com/repos/mapserver/mapserver/issues/5030/labels{/name}","comments_url":"https://api.github.com/repos/mapserver/mapserver/issues/5030/comments","events_url":"https://api.github.com/repos/mapserver/mapserver/issues/5030/events","html_url":"https://github.com/mapserver/mapserver/issues/5030","id":47934089,"number":5030,"title":"Quotes escaping in strings doesn't work with postgis raster \"filename\" field","user":{"login":"cassiel74","id":6669940,"avatar_url":"https://avatars.githubusercontent.com/u/6669940?v=3","gravatar_id":"","url":"https://api.github.com/users/cassiel74","html_url":"https://github.com/cassiel74","followers_url":"https://api.github.com/users/cassiel74/followers","following_url":"https://api.github.com/users/cassiel74/following{/other_user}","gists_url":"https://api.github.com/users/cassiel74/gists{/gist_id}","starred_url":"https://api.github.com/users/cassiel74/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cassiel74/subscriptions","organizations_url":"https://api.github.com/users/cassiel74/orgs","repos_url":"https://api.github.com/users/cassiel74/repos","events_url":"https://api.github.com/users/cassiel74/events{/privacy}","received_events_url":"https://api.github.com/users/cassiel74/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2014-11-06T08:17:10Z","updated_at":"2015-08-03T10:47:45Z","closed_at":null,"body":"According to  http://mapserver.org/mapfile/expressions.html#quotes-escaping-in-strings it should be possible to use a DATA statement like the following:\r\n\r\nDATA \"PG:host=localhost port=5432 dbname='xxx' user='xxx' password='xxx' schema='raster' table='dem' where='filename=\\'dem20_12.tif\\'' mode='2' \"\r\n\r\nbut when testing with shp2img each and every quote escaping \"tecnique\" fails with similar error messages\r\nmsDrawRasterLayerLow(): Unable to access file. Corrupt, empty or missing file 'PG:host=localhost port=5432 dbname='xxx' user='xxx' password='xxx' schema='raster' table='dem' where=\"filename='dem20_12.tif'\" mode='2'' for layer 'dem20'. Error browsing database for PostGIS Raster properties <br>\r\n\r\nRegards\r\n"},"comment":{"url":"https://api.github.com/repos/mapserver/mapserver/issues/comments/127190309","html_url":"https://github.com/mapserver/mapserver/issues/5030#issuecomment-127190309","issue_url":"https://api.github.com/repos/mapserver/mapserver/issues/5030","id":127190309,"user":{"login":"ChrisVolz","id":9746325,"avatar_url":"https://avatars.githubusercontent.com/u/9746325?v=3","gravatar_id":"","url":"https://api.github.com/users/ChrisVolz","html_url":"https://github.com/ChrisVolz","followers_url":"https://api.github.com/users/ChrisVolz/followers","following_url":"https://api.github.com/users/ChrisVolz/following{/other_user}","gists_url":"https://api.github.com/users/ChrisVolz/gists{/gist_id}","starred_url":"https://api.github.com/users/ChrisVolz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChrisVolz/subscriptions","organizations_url":"https://api.github.com/users/ChrisVolz/orgs","repos_url":"https://api.github.com/users/ChrisVolz/repos","events_url":"https://api.github.com/users/ChrisVolz/events{/privacy}","received_events_url":"https://api.github.com/users/ChrisVolz/received_events","type":"User","site_admin":false},"created_at":"2015-08-03T10:47:45Z","updated_at":"2015-08-03T10:47:45Z","body":"I can confirm this problem. The escaping does not work. (mapserver 6.4.1). Does anyone know a workaround? "}}