Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upSQL Server variable assignment in a select does not parse | SELECT @var = 1 #913
Comments
cdandoy
pushed a commit
to cdandoy/JSqlParser
that referenced
this issue
Dec 21, 2019
…rse | SELECT @var = 1 This fixes JSQLParser#913 but breaks "SELECT @@sessions.tx_read_only". Unfortunately, I don't know JavaCC enough to fix both.
cdandoy
pushed a commit
to cdandoy/JSqlParser
that referenced
this issue
Dec 21, 2019
|
Do I see it right, that every expression is assignable in this form? |
|
Yes it is.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment


Describe the bug
SQL Server supports assigning a value to a variable from a selected expression.
For example:
To Reproduce
assertSqlCanBeParsedAndDeparsed("SELECT @var = 1");System