You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Version 3.0.6 included a fix for #946 which no longer recognizes parameter names which start with digits. This is problematic because some ORMs (PetaPOCO, NPoco) generate such parameter names.
Revert the #946 and go back to the pre-3.0 behavior regarding unrecognized parameters. Instead of throwing exceptions for unrecognized parameters, silently ignore them.
I agree, but if we remove support for colons we again have a backwards compatibility issue...
Ignoring will probably fix all the issues we have here, unless somebody really feels like fixing our SQL parser to understand things like array slices. This is part of the reason I dislike having an SQL parser in the first place (#1042).
Activity
Ignore unknown parameter rather than throw
Emill commentedon May 3, 2016
Yes I think it's the best to simply ignore them. Colon in front of parameter name is not such a good idea in the first place I think. @ is better.
roji commentedon May 3, 2016
I agree, but if we remove support for colons we again have a backwards compatibility issue...
Ignoring will probably fix all the issues we have here, unless somebody really feels like fixing our SQL parser to understand things like array slices. This is part of the reason I dislike having an SQL parser in the first place (#1042).
I'll release 3.0.7 today with this fix.