Skip to content
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

[DDC-2234] FUNCTION() IS NULL comparison #551

Merged
merged 3 commits into from
Jan 20, 2013

Conversation

FabioBatSilva
Copy link
Member

@doctrinebot
Copy link

Hello,

thank you for positing this Pull Request. I have automatically opened an issue on our Jira Bug Tracker for you with the details of this Pull-Request. See the Link:

http://doctrine-project.org/jira/browse/DDC-2247

@@ -3085,24 +3101,43 @@ public function LikeExpression()
}

/**
* NullComparisonExpression ::= (SingleValuedPathExpression | InputParameter) "IS" ["NOT"] "NULL"
* NullComparisonExpression ::= InputParameter | NullIfExpression | CoalesceExpression | SingleValuedPathExpression "IS" ["NOT"] "NULL"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you need to keep the braces

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @stof

Not sure about the grammar here,
NullComparisonExpression does not parse the braces

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thses braces are grouping braces (like braces in regexes), not braces in the expression (you need to quote them for that)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done, Thanks for explaining @stof

@guilhermeblanco
Copy link
Member

It seems you broke NOT EXISTS functionality

@FabioBatSilva
Copy link
Member Author

hi @guilhermeblanco

Looks like it works
There is a test in LanguageRecognitionTest, also i have added a new one into SelectSqlGenerationTest.

beberlei added a commit that referenced this pull request Jan 20, 2013
[DDC-2234] FUNCTION() IS NULL comparison
@beberlei beberlei merged commit 916424a into doctrine:master Jan 20, 2013
@FabioBatSilva FabioBatSilva deleted the DDC-2234 branch January 20, 2013 11:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants