summaryrefslogtreecommitdiff
path: root/sql/sql_class.h
diff options
context:
space:
mode:
authorIgor Babaev <igor@askmonty.org>2018-06-28 00:33:44 -0700
committerIgor Babaev <igor@askmonty.org>2018-06-28 00:36:50 -0700
commit090febbb2dedad764a4d9fdbc9216921dd27225f (patch)
treeed47de000eb321849727cc04530993cf73f8d762 /sql/sql_class.h
parent377cd520643eba3dccc21336af582b170137d407 (diff)
downloadmariadb-git-090febbb2dedad764a4d9fdbc9216921dd27225f.tar.gz
This is another attempt to fix mdev-16473.
The previous correction of the patch for mdev-16473 did not work correctly for the databases whose names started with '*'. Added a test case with a database named "*".
Diffstat (limited to 'sql/sql_class.h')
-rw-r--r--sql/sql_class.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/sql/sql_class.h b/sql/sql_class.h
index e79fde055c2..88d3af04376 100644
--- a/sql/sql_class.h
+++ b/sql/sql_class.h
@@ -3959,7 +3959,10 @@ public:
my_message(ER_NO_DB_ERROR, ER(ER_NO_DB_ERROR), MYF(0));
return TRUE;
}
- /* This will allow to throw an error later for non-CTE references */
+ /*
+ It does not matter what database name is set in this case
+ because it will never be used after parser stage
+ */
*p_db_length= strlen(no_db);
*p_db= strmake(no_db, *p_db_length);
}