From 2a7f320cf4724d66175004885e989600abcdbd18 Mon Sep 17 00:00:00 2001 From: Johan Wikman Date: Fri, 4 Oct 2019 15:00:22 +0300 Subject: [PATCH] MXS-2713 Add test that reveals problem --- query_classifier/test/expected.sql | 1 + query_classifier/test/input.sql | 1 + 2 files changed, 2 insertions(+) diff --git a/query_classifier/test/expected.sql b/query_classifier/test/expected.sql index 13a0c87ab..b0613db30 100644 --- a/query_classifier/test/expected.sql +++ b/query_classifier/test/expected.sql @@ -32,3 +32,4 @@ QUERY_TYPE_READ QUERY_TYPE_READ QUERY_TYPE_SESSION_WRITE|QUERY_TYPE_USERVAR_WRITE QUERY_TYPE_READ|QUERY_TYPE_MASTER_READ +QUERY_TYPE_WRITE diff --git a/query_classifier/test/input.sql b/query_classifier/test/input.sql index 43fc0af57..1a03641b3 100644 --- a/query_classifier/test/input.sql +++ b/query_classifier/test/input.sql @@ -32,3 +32,4 @@ select timediff(cast('2004-12-30 12:00:00' as time), '12:00:00'); (select 1 as a from t1) union all (select 1 from dual) limit 1; SET @saved_cs_client= @@character_set_client; SELECT 1 AS c1 FROM t1 ORDER BY ( SELECT 1 AS c2 FROM t1 GROUP BY GREATEST(LAST_INSERT_ID(), t1.a) ORDER BY GREATEST(LAST_INSERT_ID(), t1.a) LIMIT 1); +SET PASSWORD FOR 'user'@'10.0.0.1'='*C50EB75D7CB4C76B5264218B92BC69E6815B057A';