Bug #59140 | LIKE concat('%',@a,'%') doesn't match when @a contains latin1 string | ||
---|---|---|---|
Submitted: | 23 Dec 2010 18:29 | Modified: | 5 Jun 2012 16:32 |
Reporter: | Andrii Nikitin | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Charsets | Severity: | S2 (Serious) |
Version: | 5.5.8 | OS: | Any |
Assigned to: | CPU Architecture: | Any |
[23 Dec 2010 18:29]
Andrii Nikitin
[23 Dec 2010 18:35]
Andrii Nikitin
Note that this problem also affects local variables in stored programs. Workaround is introduce explicit cast for @a to any character set.
[13 Sep 2011 6:59]
Valeriy Kravchuk
Bug #60130 was marked as a duplicate of this one.
[5 Jun 2012 16:32]
Paul DuBois
Noted in 5.5.26, 5.6.6 changelogs. Using CONCAT() to construct a pattern for a LIKE pattern match could result in memory corrupting and match failure.
[12 Apr 2018 5:27]
Erlend Dahl
Bug#63146 LIKE with CONCAT and REPLACE produces empty resultset - connection encoding was marked as a duplicate.