From torque-dev-return-14148-archive-asf-public=cust-asf.ponee.io@db.apache.org Wed Dec 18 15:02:03 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id 0942918065B for ; Wed, 18 Dec 2019 16:02:02 +0100 (CET) Received: (qmail 4290 invoked by uid 500); 18 Dec 2019 15:02:02 -0000 Mailing-List: contact torque-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Apache Torque Developers List" Reply-To: "Apache Torque Developers List" Delivered-To: mailing list torque-dev@db.apache.org Received: (qmail 4241 invoked by uid 99); 18 Dec 2019 15:02:02 -0000 Received: from mailrelay1-us-west.apache.org (HELO mailrelay1-us-west.apache.org) (209.188.14.139) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Dec 2019 15:02:02 +0000 Received: from jira-he-de.apache.org (static.172.67.40.188.clients.your-server.de [188.40.67.172]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 9832DE3160 for ; Wed, 18 Dec 2019 15:02:01 +0000 (UTC) Received: from jira-he-de.apache.org (localhost.localdomain [127.0.0.1]) by jira-he-de.apache.org (ASF Mail Server at jira-he-de.apache.org) with ESMTP id 4A46E78090B for ; Wed, 18 Dec 2019 15:02:00 +0000 (UTC) Date: Wed, 18 Dec 2019 15:02:00 +0000 (UTC) From: "Georg Kallidis (Jira)" To: torque-dev@db.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (TORQUE-353) DataTest.testLikeClauseEscaping fails on MySQL 5.7.16 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/TORQUE-353?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1699= 9251#comment-16999251 ]=20 Georg Kallidis commented on TORQUE-353: --------------------------------------- Mysql 8.0.18, linux: {code:sql} mysql> SELECT author.author_id, author.name, author.name LIKE '%\\\\c' FROM= author; +-----------+------+---------------------------+ | author_id | name | author.name LIKE '%\\\\c' | +-----------+------+---------------------------+ | 1 | abc | 0 | | 2 | bbc | 0 | | 3 | a_c | 0 | | 4 | a%c | 0 | | 5 | a\c | 1 | | 6 | a"c | 0 | | 7 | a'c | 0 | | 8 | a?c | 0 | | 9 | a*c | 0 | +-----------+------+---------------------------+ 9 rows in set (0.00 sec) {code} This seems now again as expected + Torque 4.1 targets MySQL 8. > 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 > > MySQL 5.7.16 on Mac OS X 10.11.6 > DataTest.testLikeClauseEscaping tests if '%\\\\c' matches 'a\c' which fai= ls. > This is actually a MySQL problem which can be reproduced on the command l= ine: > {code:sql} > mysql> select * from Author; > +-----------+------+ > | author_id | name | > +-----------+------+ > |=C2=A0 =C2=A0 =C2=A0 1728 | abc=C2=A0 | > |=C2=A0 =C2=A0 =C2=A0 1729 | bbc=C2=A0 | > |=C2=A0 =C2=A0 =C2=A0 1730 | a_c=C2=A0 | > |=C2=A0 =C2=A0 =C2=A0 1731 | a%c=C2=A0 | > |=C2=A0 =C2=A0 =C2=A0 1732 | a\c=C2=A0 | > |=C2=A0 =C2=A0 =C2=A0 1733 | a"c=C2=A0 | > |=C2=A0 =C2=A0 =C2=A0 1734 | a'c=C2=A0 | > |=C2=A0 =C2=A0 =C2=A0 1735 | a?c=C2=A0 | > |=C2=A0 =C2=A0 =C2=A0 1736 | a*c=C2=A0 | > +-----------+------+ > 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 | > +-----------+------+ > |=C2=A0 =C2=A0 =C2=A0 1732 | a\c=C2=A0 | > +-----------+------+ > 1 row in set (0,00 sec) > {code} > Any idea how to handle this? > =C2=A0 -- 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