-
Notifications
You must be signed in to change notification settings - Fork 2
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 stacked methods #2
base: master
Are you sure you want to change the base?
Conversation
Currently only one level of method calls is supported for finding quoting methods e.g. $dbh->quote but this allowed for multiple levels e.g. $foo->bar->baz->dbh->quote as long as one of them matches.
My apologies. For some reason I didn't see this PR until today. :(
I think that would be helpful. If you're able to do that, I can get this into a new release for you. |
So there's a tradeoff. The problem I identified predates my changes and so "fixing" it will introduce a backwards-incompatible change.
I can fix it by removing the
|
Thank you! This looks good. I'm ok with a breaking change for this particular case. |
If you want to update the PR, I'm happy to move ahead with this. |
I found a lot of instances of $self->dbh->quote_identifier in my code that failed to pass because multiple stacked calls were not followed. This small change should allow that to work. Only flaw is it also allows $self->quote->unsafe->thing. If that is a concern, I could further refactor the code to only test the final method call in the stack.