diff options
| author | Alexander Barkov <bar@mariadb.com> | 2019-05-26 06:17:35 +0400 |
|---|---|---|
| committer | Alexander Barkov <bar@mariadb.com> | 2019-05-26 09:49:13 +0400 |
| commit | 9f23f8e59807f8ebc6a45e176332f33e2ac09d6c (patch) | |
| tree | b459d361418a73d3e274a73d4122bf6e4cf6575b /sql/sql_cursor.cc | |
| parent | ac93d7d674cd9955c940055d9777e98a1fbaf1cd (diff) | |
| download | mariadb-git-9f23f8e59807f8ebc6a45e176332f33e2ac09d6c.tar.gz | |
MDEV-19599 Change db_name, table_name to LEX_CSTRING in Item_ident and Send_field
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 8f41fe7c70d..b995a841a74 100644 --- a/sql/sql_cursor.cc +++ b/sql/sql_cursor.cc @@ -284,12 +284,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); } /* |
