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

Debug ConnectionPanel: Like parameter is double escaped #189

Open
adaamz opened this issue Nov 14, 2017 · 1 comment
Open

Debug ConnectionPanel: Like parameter is double escaped #189

adaamz opened this issue Nov 14, 2017 · 1 comment

Comments

@adaamz
Copy link
Contributor

@adaamz adaamz commented Nov 14, 2017

  • bug report? yes
  • version: master

When LIKE is used then the value is escaped once via ISupplementalDriver and passe as parameter of query. Then parameter value (already escaped) is escape again in connection panel sql dump here:
https://github.com/nette/database/blob/master/src/Database/Helpers.php#L122
That results in printing double escaped parameter value and this query (with its parameters) is not that query that went to database.
I hope you understand what I mean.

@dg
Copy link
Member

@dg dg commented Feb 6, 2018

Can you fix it and send PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.