From 47601363a9529ed7f0db1a5e401d5617c1bbc7d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20M=C3=A4kel=C3=A4?= Date: Fri, 12 Nov 2021 17:14:58 +0200 Subject: [PATCH] MXS-3873: Add test case The test makes sure this problem is fixed by the fix for MXS-3585. --- 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 aca65af9b..839d758c5 100644 --- a/query_classifier/test/expected.sql +++ b/query_classifier/test/expected.sql @@ -38,3 +38,4 @@ QUERY_TYPE_WRITE QUERY_TYPE_WRITE QUERY_TYPE_WRITE QUERY_TYPE_WRITE +QUERY_TYPE_WRITE diff --git a/query_classifier/test/input.sql b/query_classifier/test/input.sql index 351c27a1c..7b64eb886 100644 --- a/query_classifier/test/input.sql +++ b/query_classifier/test/input.sql @@ -38,3 +38,4 @@ SELECT COUNT(IF(!c.ispackage, 1, NULL)) as cnt FROM test FOR UPDATE; SELECT handler FROM abc FOR UPDATE; SELECT * FROM test LOCK IN SHARE MODE; SELECT * FROM test FOR SHARE; +DELETE x FROM x JOIN (SELECT id FROM y) y ON x.id = y.id;