database icon indicating copy to clipboard operation
database copied to clipboard

Debug ConnectionPanel: Like parameter is double escaped

Open adaamz opened this issue 7 years ago • 1 comments

  • 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.

adaamz avatar Nov 14 '17 15:11 adaamz

Can you fix it and send PR?

dg avatar Feb 06 '18 16:02 dg