-
Notifications
You must be signed in to change notification settings - Fork 45
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
ParseExpression - breaks any query that happens to contain the ColumnName #5
Comments
Anyway I fixed this bug, and will check it into the tree, once I get time to install GitHub tools. Cheers! |
What's the fix? Comment on here and I can put it in my forked tree and create the pull request. |
Original line:string paramValue = Utility.FastReplace(Utility.FastReplace(expression, columnName, String.Empty), comparisonOperator, String.Empty).Trim();Fix:// BUG!!! returns an incorrect paramValue when the right side of expression also contains columnName // End patch by lululemon athletica.Description: |
This has been fixed and posted to the trunk code. Thanks for your input. However, it's worth a comment that I don't think this overload of the WHERE method was intended for string comparisons. The only reason you might use the first format is if you are passing the comparison in as a predefined string rather than actually specifying it yourself. |
ParseExpression(string expression, WhereCondition condition) of SubSonic.Where.Query.cs
returns an incorrect paramValue when the right side of expression also contains columnName
i.e. apply this to "code=BARCODE" and you'll get "BAR" instead of "BARCODE"
The text was updated successfully, but these errors were encountered: