nette/database

Debug ConnectionPanel: Like parameter is double escaped

Opened this issue · 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.

dg commented

Can you fix it and send PR?