MySqlDriver: Is formatLike handling properly backslash?
Closed this issue · 1 comments
adaamz commented
Hi,
I think that Nette\Database\Drivers\MySqlDriver::formatLike method is not handling backslash properly.
If I test it on value abc\.abc
then the result should be abc\\\\.abc
(4x backslash) and now it returns abc\\\\\\\\.abc
(8x backslash).
Is anybody else experiencing this?
Thanks.
ps. The fix should be remove backslash from addclashes's charlist parameter.
dg commented
Reverted - it seems to me that formatLike() works correctly.