You are viewing a plain text version of this content. The canonical link for it is here.
Posted to torque-dev@db.apache.org by "Georg Kallidis (Jira)" <ji...@apache.org> on 2019/12/18 15:34:00 UTC

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

     [ 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)

---------------------------------------------------------------------
To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
For additional commands, e-mail: torque-dev-help@db.apache.org