Hi,<div><br></div><div>According to a commit (made 11 years ago) in <a href="http://trac.osgeo.org/mapserver/changeset/1370">rev1370</a>  the OGR connections strings are being split by the comma separators, see the following fragment in msOGRFileOpen:</div>
<div><br></div><div><div>     papszTokens = CSLTokenizeStringComplex( conn_decrypted, ",", TRUE, FALSE );</div><div><br></div><div>    if( CSLCount(papszTokens) > 0 )</div><div>      pszDSName = CPLStrdup( papszTokens[0] );</div>
<div>    if( CSLCount(papszTokens) > 1 )</div><div>      pszLayerDef = CPLStrdup( papszTokens[1] );</div></div><div><br></div><div>This behaviour causes issues if the syntax of the connection string may normally expect commas, like with the issue: <a href="http://trac.osgeo.org/gdal/ticket/4885">http://trac.osgeo.org/gdal/ticket/4885</a></div>
<div><br></div><div><br></div><div>Does it make sense to split the connection strings this way? </div><div><br></div><div>According to the <a href="http://mapserver.org/en/input/vector/ogr.html">OGR driver documentation</a> the layer definitions should go to the DATA section and not to the CONNECTION section.</div>
<div><br></div><div>I'd be in favour of removing this fragment from the code but I'm not sure about all consequences.</div><div><br></div><div><br></div><div>Best regards,</div><div><br></div><div>Tamas</div><div>
<br></div><div><br></div>