summaryrefslogtreecommitdiff
path: root/sql/item_strfunc.cc
diff options
context:
space:
mode:
authorMonty <monty@mariadb.org>2018-01-08 15:33:23 +0200
committerMonty <monty@mariadb.org>2018-01-30 21:33:56 +0200
commitf55dc7f733446a201e3b465ae03a0388d192a3ad (patch)
tree54bb6977650a907dcd069ef1b7124e61944ceabe /sql/item_strfunc.cc
parent18e22cb69f7d56207c80a5bf4336f2a52ff0d70f (diff)
downloadmariadb-git-f55dc7f733446a201e3b465ae03a0388d192a3ad.tar.gz
Change C_STRING_WITH_LEN to STRING_WITH_LEN
This preserves const str for constant strings Other things - A few variables where changed from LEX_STRING to LEX_CSTRING - Incident_log_event::Incident_log_event and record_incident where changed to take LEX_CSTRING* as an argument instead of LEX_STRING
Diffstat (limited to 'sql/item_strfunc.cc')
-rw-r--r--sql/item_strfunc.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/item_strfunc.cc b/sql/item_strfunc.cc
index 0969af6a267..c768f7d9d1a 100644
--- a/sql/item_strfunc.cc
+++ b/sql/item_strfunc.cc
@@ -2408,7 +2408,7 @@ String *Item_func_sqlerrm::val_str(String *str)
system_charset_info);
return str;
}
- str->copy(C_STRING_WITH_LEN("normal, successful completition"),
+ str->copy(STRING_WITH_LEN("normal, successful completition"),
system_charset_info);
return str;
}
@@ -2925,7 +2925,7 @@ void Item_func_char::print(String *str, enum_query_type query_type)
print_args(str, 0, query_type);
if (collation.collation != &my_charset_bin)
{
- str->append(C_STRING_WITH_LEN(" using "));
+ str->append(STRING_WITH_LEN(" using "));
str->append(collation.collation->csname);
}
str->append(')');