diff options
author | Alexey Botchkov <holyfoot@askmonty.org> | 2017-07-18 13:19:34 +0400 |
---|---|---|
committer | Alexey Botchkov <holyfoot@askmonty.org> | 2017-07-18 13:19:34 +0400 |
commit | 7e44eabdad59993c504699e01d15ddb106f64e9b (patch) | |
tree | 356057c27bb02b11ecd22b7cc2e4c875a321c734 /sql | |
parent | c9883b75914d0ba4975aae0fbf8164f026e88559 (diff) | |
download | mariadb-git-7e44eabdad59993c504699e01d15ddb106f64e9b.tar.gz |
MDEV-11205 UDF_ARGS "attribute_lengths" incorrect value.
Set name_length properly in Item_idnet constructors.
Diffstat (limited to 'sql')
-rw-r--r-- | sql/item.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/item.cc b/sql/item.cc index b7dac96d418..dff2f3d3ee6 100644 --- a/sql/item.cc +++ b/sql/item.cc @@ -817,6 +817,7 @@ Item_ident::Item_ident(Name_resolution_context *context_arg, cached_table(0), depended_from(0), can_be_depended(TRUE) { name = (char*) field_name_arg; + name_length= name ? strlen(name) : 0; } @@ -829,6 +830,7 @@ Item_ident::Item_ident(TABLE_LIST *view_arg, const char *field_name_arg) cached_table(NULL), depended_from(NULL), can_be_depended(TRUE) { name = (char*) field_name_arg; + name_length= name ? strlen(name) : 0; } |