summaryrefslogtreecommitdiff
path: root/sql/sql_parse.cc
diff options
context:
space:
mode:
authorRahul Anand <rahulanand16nov@gmail.com>2020-03-02 20:05:28 +0530
committerRobert Bindar <robert@mariadb.org>2020-03-03 13:12:43 +0200
commit73dfb402bfb58deaae06d4c5062b1de017e2d520 (patch)
tree7cafce9f36da223b1a20bcaed4cf92ef18bd7673 /sql/sql_parse.cc
parent8f8cc5f4c2d6882f169b19d670b922844f66150d (diff)
downloadmariadb-git-73dfb402bfb58deaae06d4c5062b1de017e2d520.tar.gz
MDEV-20500: Bad error msg on disabling local infile
Diffstat (limited to 'sql/sql_parse.cc')
-rw-r--r--sql/sql_parse.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/sql/sql_parse.cc b/sql/sql_parse.cc
index dac5b025821..470b5154c9c 100644
--- a/sql/sql_parse.cc
+++ b/sql/sql_parse.cc
@@ -4940,8 +4940,9 @@ mysql_execute_command(THD *thd)
if (!(thd->client_capabilities & CLIENT_LOCAL_FILES) ||
!opt_local_infile)
{
- my_message(ER_NOT_ALLOWED_COMMAND, ER_THD(thd, ER_NOT_ALLOWED_COMMAND), MYF(0));
- goto error;
+ my_message(ER_LOAD_INFILE_CAPABILITY_DISABLED,
+ ER_THD(thd, ER_LOAD_INFILE_CAPABILITY_DISABLED), MYF(0));
+ goto error;
}
}