-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Conversation
…os. Fixed corresponding bugs.
@@ -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 + '%'", |
There was a problem hiding this comment.
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".
There was a problem hiding this comment.
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.
|
||
return true; | ||
} | ||
if (fieldInfo != null) |
There was a problem hiding this comment.
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 😄
There was a problem hiding this comment.
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...
There was a problem hiding this comment.
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? 😄
... Fixed corresponding bugs.