[jira] [Resolved] (TORQUE-353) DataTest.testLikeClauseEscaping fails on MySQL 5.7.16

"Georg Kallidis (Jira)" <[email protected]>
Newsgroups gmane.comp.jakarta.turbine.torque.devel
Message-ID <[email protected]>
     [ https://issues.apache.org/jira/browse/TORQUE-353?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Georg Kallidis resolved TORQUE-353.
-----------------------------------
    Fix Version/s: 4.1
       Resolution: Fixed

see rev 1871755, skip test key/value pair, if it is mysql 5.x or mariadb 10.1 or 10.2.

> DataTest.testLikeClauseEscaping fails on MySQL 5.7.16
> -----------------------------------------------------
>
>                 Key: TORQUE-353
>                 URL: https://issues.apache.org/jira/browse/TORQUE-353
>             Project: Torque
>          Issue Type: Bug
>          Components: Runtime, Test Project
>    Affects Versions: 4.1
>            Reporter: Thomas Vandahl
>            Priority: Major
>             Fix For: 4.1
>
>
> MySQL 5.7.16 on Mac OS X 10.11.6
> DataTest.testLikeClauseEscaping tests if '%\\\\c' matches 'a\c' which fails.
> This is actually a MySQL problem which can be reproduced on the command line:
> {code:sql}
> mysql> select * from Author;
> +-----------+------+
> | author_id | name |
> +-----------+------+
> |      1728 | abc  |
> |      1729 | bbc  |
> |      1730 | a_c  |
> |      1731 | a%c  |
> |      1732 | a\c  |
> |      1733 | a"c  |
> |      1734 | a'c  |
> |      1735 | a?c  |
> |      1736 | a*c  |
> +-----------+------+
> 9 rows in set (0,00 sec)
> mysql> select * from Author where name like '%\\\\c';
> Empty set (0,00 sec)
> {code}
> Strangely enough, the following succeeds:
> {code:sql}
> mysql> select * from Author where name like '%\\\\\\c';
> +-----------+------+
> | author_id | name |
> +-----------+------+
> |      1732 | a\c  |
> +-----------+------+
> 1 row in set (0,00 sec)
> {code}
> Any idea how to handle this?
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.