summaryrefslogtreecommitdiff
path: root/sql/item_strfunc.cc
diff options
context:
space:
mode:
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 483a6468c2e..0969af6a267 100644
--- a/sql/item_strfunc.cc
+++ b/sql/item_strfunc.cc
@@ -2383,13 +2383,13 @@ String *Item_func_database::val_str(String *str)
{
DBUG_ASSERT(fixed == 1);
THD *thd= current_thd;
- if (thd->db == NULL)
+ if (thd->db.str == NULL)
{
null_value= 1;
return 0;
}
else
- str->copy(thd->db, thd->db_length, system_charset_info);
+ str->copy(thd->db.str, thd->db.length, system_charset_info);
null_value= 0;
return str;
}