[mapserver-dev] Using backslash in CONNECTION parameter

Stephen Woodbridge woodbri at swoodbridge.com
Sun Mar 27 14:40:38 EDT 2011


On 3/27/2011 2:36 PM, Tamas Szekeres wrote:
> Hi All,
>
> It seems there have been some changes when parsing the connections
> strings in 6.0
>
> Formerly the following was working:
> "server=.\MSSQL2008;database=Maps;Integrated Security=true" in the
> CONNECTION parameter but currently the back slashes are stripped by the
> lexer.
>
> I've checked out the migration guide but didn't find any useful
> information in this topic.
>
> Any workarounds?

Did you try doubling the backslash? Typically a backslash is an escape 
character within a string it requires \\ to represent a single one.

Steve L would probably have a better read on if this changed in the 
recent parser changes, but give that a try and see if it helps.

-Steve W


More information about the mapserver-dev mailing list