Skip to content

Bug in SQL parser #163

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

Closed
thegoatherder opened this issue Feb 19, 2014 · 1 comment
Closed

Bug in SQL parser #163

thegoatherder opened this issue Feb 19, 2014 · 1 comment
Assignees
Milestone

Comments

@thegoatherder
Copy link

The following code tagged with the SQL class:

SELECT RIGHT( SUSER_NAME(),LEN( SUSER_NAME())-CHARINDEX('\', SUSER_NAME()))

OUTPUTS:

SELECT RIGHT( SUSER_NAME(),LEN( SUSER_NAME())-CHARINDEX('\'

It appears that the \' escapes the rest of the string. If I add a space after the slash then it renders correctly (but my SQL code is then incorrect!

SELECT RIGHT( SUSER_NAME(),LEN( SUSER_NAME())-CHARINDEX('\ ', SUSER_NAME()))
korny added a commit that referenced this issue Feb 21, 2014
@korny
Copy link
Member

korny commented Feb 21, 2014

Thank you, that was a pretty stupid bug :)

@korny korny self-assigned this Feb 21, 2014
@korny korny added this to the 1.1.1 milestone Feb 21, 2014
@korny korny added Bug labels Feb 21, 2014
@korny korny closed this as completed Feb 21, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants