summaryrefslogtreecommitdiff
path: root/sql/set_var.cc
diff options
context:
space:
mode:
authorNikita Malyavin <nikitamalyavin@gmail.com>2018-09-25 17:58:39 +1000
committerNikita Malyavin <nikitamalyavin@gmail.com>2019-06-17 19:31:17 +1000
commita626abb66908e499624eba1508ca333116084fd1 (patch)
tree8a94a9f1d2e506f2e714dbfb581e28ef873b4f07 /sql/set_var.cc
parentfb5ee3ff96dccacea96810a12cff141085ec4218 (diff)
downloadmariadb-git-a626abb66908e499624eba1508ca333116084fd1.tar.gz
Fix LEX_CSTRING passed as argument of printf-like functions
Diffstat (limited to 'sql/set_var.cc')
-rw-r--r--sql/set_var.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/set_var.cc b/sql/set_var.cc
index 3272d0dfe5b..3711ec64aeb 100644
--- a/sql/set_var.cc
+++ b/sql/set_var.cc
@@ -808,7 +808,7 @@ int set_var::light_check(THD *thd)
if (var->check_type(type))
{
int err= type == OPT_GLOBAL ? ER_LOCAL_VARIABLE : ER_GLOBAL_VARIABLE;
- my_error(err, MYF(0), var->name);
+ my_error(err, MYF(0), var->name.str);
return -1;
}
if (type == OPT_GLOBAL && check_global_access(thd, SUPER_ACL))