You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks like the CaseExpressionParser isn't able to handle complex grammars.
[Test]
public void CaseExpression_Inside_CaseExpression()
{
const string sql = @"CASE 10
WHEN 20 THEN 30
ELSE CASE 40
WHEN 50 THEN 60
ELSE 70
END
END";
TSQLTokenizer tokenizer = new TSQLTokenizer(sql);
Assert.IsTrue(tokenizer.MoveNext());
var expression = new TSQLCaseExpressionParser().Parse(tokenizer);
CollectionAssert.AllItemsAreNotNull(expression.Tokens);
Assert.AreEqual(0, expression.BeginPosition);
}
The text was updated successfully, but these errors were encountered:
teyc
added a commit
to teyc/tsql-parser
that referenced
this issue
Feb 5, 2023
It looks like the CaseExpressionParser isn't able to handle complex grammars.
The text was updated successfully, but these errors were encountered: