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

Allow complex boolean expressions in projection #4266

Merged
merged 1 commit into from
Jan 12, 2016
Merged

Conversation

smitpatel
Copy link
Contributor

resolves #2450
Removed all context.Database.EnsureCreated/Deleted from Seed method. All fixtures call Seed method after dropping/creating database.

public override void Select_ternary_operation_with_has_value_not_null()
{
// TODO: Optimize this query
base.Select_ternary_operation_with_has_value_not_null();
Copy link
Contributor Author

Choose a reason for hiding this comment

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

filed #4267
Will also write it in comment.

var test = Visit(node.Test);
_insideConditionalTest = false;
Copy link
Contributor

Choose a reason for hiding this comment

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

Does it matter if we re-enter here via nested conditionals?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Case block inside When part (node.Test) is not supported. There can be nested conditionals inside IfTrue & IfFalse but not inside Test. So we do not enter VisitConditional while _insideConditionalTest is true.
Also added test for nested conditionals.

@smitpatel
Copy link
Contributor Author

Updated

@anpete
Copy link
Contributor

anpete commented Jan 11, 2016

:shipit:

Apply nullsemantics to projection
@smitpatel smitpatel merged commit 16dc210 into dev Jan 12, 2016
@smitpatel smitpatel deleted the HasValueNotNull branch January 12, 2016 00:37
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.

3 participants