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
The TSql160Parser incorrectly identifies the interval parameter in the DATEDIFF function as a ColumnReferenceExpression. This issue occurs when parsing expressions like DATEDIFF(mm, ColA, ColB).
Reproduction Steps:
Use the following SQL query: SELECT DATEDIFF(mm, ColA, ColB) FROM my_table;
Parse the query using TSql160Parser.
Observe that the interval parameter mm is identified as a ColumnReferenceExpression.
Expected Behavior:
The interval parameter mm should be identified as a Literal or Identifier, not a ColumnReferenceExpression.
Environment Details:
SqlScriptDOM version: 161.9142.1
.NET version: 8.0
Operating System: Windows 10
The text was updated successfully, but these errors were encountered:
The TSql160Parser incorrectly identifies the interval parameter in the DATEDIFF function as a ColumnReferenceExpression. This issue occurs when parsing expressions like
DATEDIFF(mm, ColA, ColB)
.Reproduction Steps:
SELECT DATEDIFF(mm, ColA, ColB) FROM my_table;
mm
is identified as a ColumnReferenceExpression.Expected Behavior:
The interval parameter
mm
should be identified as a Literal or Identifier, not a ColumnReferenceExpression.Environment Details:
The text was updated successfully, but these errors were encountered: