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

Query: Caching: Added test coverage for more parameterization scenarios.... #1589

Merged
merged 1 commit into from
Feb 11, 2015

Conversation

anpete
Copy link
Contributor

@anpete anpete commented Feb 11, 2015

... Fixed corresponding bugs.

@ghost ghost added the cla-not-required label Feb 11, 2015
@@ -1238,7 +1441,7 @@ public override void String_StartsWith_MethodCall()
Assert.Equal(
@"SELECT [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[CustomerID], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region]
FROM [Customers] AS [c]
WHERE [c].[ContactName] LIKE 'M' + '%'",
WHERE [c].[ContactName] LIKE @__LocalMethod1_0 + '%'",
Copy link
Contributor

Choose a reason for hiding this comment

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

Can't remember if we talked about this already but these should use escaping, e.g. in case the value is something like "_m".

Copy link
Contributor

Choose a reason for hiding this comment

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

I had already filed this as #474.

@divega
Copy link
Contributor

divega commented Feb 11, 2015

:shipit:

@anpete anpete merged commit be63142 into dev Feb 11, 2015
@anpete anpete deleted the cache-fixes branch February 11, 2015 18:27

return true;
}
if (fieldInfo != null)
Copy link
Contributor

Choose a reason for hiding this comment

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

@anpete thanks for making this immune to https://entityframework.codeplex.com/workitem/1108 😄

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm not sure that does what you think :-) But I know how to make it do what you suggest...

Copy link
Contributor

Choose a reason for hiding this comment

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

Do'h, you are right, I was thinking @object should not be null. I was also thinking you can just fallback to the lambda compilation to fail with the right exception. Want me to file a bug? 😄

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.

2 participants