Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Treat backslash as escape characters for SQL" fails for SQLCMD mode :setvar script #3297

Closed
JamieOglethorpeEPS opened this issue May 19, 2017 · 1 comment

Comments

@JamieOglethorpeEPS
Copy link

JamieOglethorpeEPS commented May 19, 2017

Description of the Issue

A :setvar command uses double quotes for the value part:
:setvar DefaultDataPath "C:\EPS\Data\"

The backslash is treated as an escape character regardless of the setting.
This example was generated by SqlPackage.exe

Steps to Reproduce the Issue

  1. Create a new document (e.g. ctrl-n)
  2. Set the language to SQL
  3. Capture the following two lines:
    "\"
    GO

Expected Behavior

The GO command should be blue

Actual Behavior

The GO command is grey.

Debug Information

Screenshot:
image

Reference: Issue 2451

@dail8859
Copy link
Contributor

Turn off Settings > Preferences > MISC > Treat backslash as escape character for SQL


image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants