From 05c9aea04d456409ddcfd524d01940018efa054b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20M=C3=A4kel=C3=A4?= Date: Mon, 26 Nov 2018 14:21:05 +0200 Subject: [PATCH] MXS-2186: Make SHOW DATABASES a read Since SHOW TABLES is a read, SHOW DATABASES should be one as well. --- server/core/queryclassifier.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/server/core/queryclassifier.cc b/server/core/queryclassifier.cc index 57e69489b..d45b9aff8 100644 --- a/server/core/queryclassifier.cc +++ b/server/core/queryclassifier.cc @@ -387,6 +387,7 @@ bool QueryClassifier::query_type_is_read_only(uint32_t qtype) const && !qc_query_is_type(qtype, QUERY_TYPE_WRITE) && (qc_query_is_type(qtype, QUERY_TYPE_READ) || qc_query_is_type(qtype, QUERY_TYPE_SHOW_TABLES) + || qc_query_is_type(qtype, QUERY_TYPE_SHOW_DATABASES) || qc_query_is_type(qtype, QUERY_TYPE_USERVAR_READ) || qc_query_is_type(qtype, QUERY_TYPE_SYSVAR_READ) || qc_query_is_type(qtype, QUERY_TYPE_GSYSVAR_READ)))