diff options
Diffstat (limited to 'sql/sql_cursor.cc')
-rw-r--r-- | sql/sql_cursor.cc | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sql/sql_cursor.cc b/sql/sql_cursor.cc index d73d2a36fd5..3e9fe8076fc 100644 --- a/sql/sql_cursor.cc +++ b/sql/sql_cursor.cc @@ -270,12 +270,11 @@ int Materialized_cursor::send_result_set_metadata( */ while ((item_dst= it_dst++, item_org= it_org++)) { - Send_field send_field; Item_ident *ident= static_cast<Item_ident *>(item_dst); - item_org->make_send_field(thd, &send_field); + Send_field send_field(thd, item_org); - ident->db_name= thd->strdup(send_field.db_name); - ident->table_name= thd->strdup(send_field.table_name); + ident->db_name= thd->strmake_lex_cstring(send_field.db_name); + ident->table_name= thd->strmake_lex_cstring(send_field.table_name); } /* |