summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVladislav Vaintroub <wlad@mariadb.com>2017-08-31 14:50:45 +0000
committerVladislav Vaintroub <wlad@mariadb.com>2017-08-31 14:57:56 +0000
commit6be93c3b8a1d8c080d73750e3804752ad80f56d1 (patch)
tree0bab837cd009ddaa17531da6c53dcd96e882079c
parent66eb9774e43dc96e7d45d800b4860354f81d258d (diff)
downloadmariadb-git-6be93c3b8a1d8c080d73750e3804752ad80f56d1.tar.gz
MDEV-13693 : Fix parameter passing to my_error.
char* parameter is expected by the message ER_KEY_COLUMN_DOES_NOT_EXITS, thus pass char*, rather than LEX_STRING.
-rw-r--r--sql/sql_class.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_class.cc b/sql/sql_class.cc
index da1a0e43ac1..eedda8579e7 100644
--- a/sql/sql_class.cc
+++ b/sql/sql_class.cc
@@ -230,7 +230,7 @@ bool Foreign_key::validate(List<Create_field> &table_fields)
sql_field->field_name)) {}
if (!sql_field)
{
- my_error(ER_KEY_COLUMN_DOES_NOT_EXITS, MYF(0), column->field_name);
+ my_error(ER_KEY_COLUMN_DOES_NOT_EXITS, MYF(0), column->field_name.str);
DBUG_RETURN(TRUE);
}
if (type == Key::FOREIGN_KEY && sql_field->vcol_info)