Replies: 2 comments 3 replies
|
As always, thanks for reporting. The current parsing logic is recursive, so the embedded functions shouldn't be the problem. I'll try to replicate and go from there. Bruce |
0 replies
|
I've been able to confirm the issue. The issue is that "RIGHT" is a keyword, e.g. "RIGHT JOIN", and there's currently no parsing branch for dealing with keywords when recursively parsing function arguments. It should be a quick fix, but I'm going to have to do some expanded testing for different keyword use cases to make sure I don't end up adding new bugs. Bruce |
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi Bruce,
Me again.
Recently, while parsing this simple statement:
SELECT COALESCE(added_by, RIGHT(user, LEN(user)-5)) AS changed_by FROM my_tableCalling the ParserStaements method will throw this exception below:
System.NullReferenceException: 'Object reference not set to an instance of an object.'
I realised that COALESCE may contain multiple number of parameters and each of them could also be a function. So I suspect the current logic requires a bit update to cater for these cases.
What is your opinion on this case?
Thank you in advance.
Paul
All reactions