@@ -76,7 +76,7 @@ bool Select_lex_builder::add_star_select_item() {
76
76
const LEX_CSTRING star = {STRING_WITH_LEN (" *" )};
77
77
78
78
PTI_simple_ident_ident *ident_star =
79
- new (m_thd->mem_root ) PTI_simple_ident_ident (*m_pos, to_lex_string ( star) );
79
+ new (m_thd->mem_root ) PTI_simple_ident_ident (*m_pos, star);
80
80
if (ident_star == nullptr ) return true ;
81
81
82
82
return add_to_select_item_list (ident_star);
@@ -89,14 +89,14 @@ bool Select_lex_builder::add_star_select_item() {
89
89
bool Select_lex_builder::add_select_item (const LEX_CSTRING &field_name,
90
90
const LEX_CSTRING &alias) {
91
91
/* ... FIELD_NAME ... */
92
- PTI_simple_ident_ident *ident_field = new (m_thd-> mem_root )
93
- PTI_simple_ident_ident (*m_pos, to_lex_string ( field_name) );
92
+ PTI_simple_ident_ident *ident_field =
93
+ new (m_thd-> mem_root ) PTI_simple_ident_ident (*m_pos, field_name);
94
94
if (ident_field == nullptr ) return true ;
95
95
96
96
/* ... FIELD_NAME as alias ... */
97
97
PTI_expr_with_alias *expr;
98
- expr = new (m_thd->mem_root ) PTI_expr_with_alias (
99
- *m_pos, ident_field, m_pos->cpp , to_lex_string ( alias) );
98
+ expr = new (m_thd->mem_root )
99
+ PTI_expr_with_alias ( *m_pos, ident_field, m_pos->cpp , alias);
100
100
if (expr == nullptr ) return true ;
101
101
102
102
return add_to_select_item_list (expr);
@@ -109,8 +109,8 @@ bool Select_lex_builder::add_select_item(const LEX_CSTRING &field_name,
109
109
bool Select_lex_builder::add_select_expr (Item *select_list_item,
110
110
const LEX_CSTRING &alias) {
111
111
/* ... FIELD_NAME as alias ... */
112
- PTI_expr_with_alias *expr = new (m_thd->mem_root ) PTI_expr_with_alias (
113
- *m_pos, select_list_item, m_pos->cpp , to_lex_string ( alias) );
112
+ PTI_expr_with_alias *expr = new (m_thd->mem_root )
113
+ PTI_expr_with_alias ( *m_pos, select_list_item, m_pos->cpp , alias);
114
114
if (expr == nullptr ) return true ;
115
115
116
116
return add_to_select_item_list (expr);
@@ -169,8 +169,8 @@ bool Select_lex_builder::add_from_item(PT_derived_table *dt) {
169
169
Item *Select_lex_builder::prepare_like_item (const LEX_CSTRING &field_name,
170
170
const String *wild) {
171
171
/* ... FIELD_NAME ... */
172
- PTI_simple_ident_ident *ident_field = new (m_thd-> mem_root )
173
- PTI_simple_ident_ident (*m_pos, to_lex_string ( field_name) );
172
+ PTI_simple_ident_ident *ident_field =
173
+ new (m_thd-> mem_root ) PTI_simple_ident_ident (*m_pos, field_name);
174
174
if (ident_field == nullptr ) return nullptr ;
175
175
176
176
/* ... <value> ... */
@@ -197,8 +197,8 @@ Item *Select_lex_builder::prepare_like_item(const LEX_CSTRING &field_name,
197
197
Item *Select_lex_builder::prepare_equal_item (const LEX_CSTRING &field_name,
198
198
const LEX_CSTRING &value) {
199
199
/* ... FIELD_NAME ... */
200
- PTI_simple_ident_ident *ident_field = new (m_thd-> mem_root )
201
- PTI_simple_ident_ident (*m_pos, to_lex_string ( field_name) );
200
+ PTI_simple_ident_ident *ident_field =
201
+ new (m_thd-> mem_root ) PTI_simple_ident_ident (*m_pos, field_name);
202
202
if (ident_field == nullptr ) return nullptr ;
203
203
204
204
/* ... <value> ... */
@@ -251,8 +251,8 @@ bool Select_lex_builder::add_order_by(const LEX_CSTRING &field_name) {
251
251
}
252
252
253
253
/* ... FIELD_NAME ... */
254
- PTI_simple_ident_ident *ident_field = new (m_thd-> mem_root )
255
- PTI_simple_ident_ident (*m_pos, to_lex_string ( field_name) );
254
+ PTI_simple_ident_ident *ident_field =
255
+ new (m_thd-> mem_root ) PTI_simple_ident_ident (*m_pos, field_name);
256
256
if (ident_field == nullptr ) return true ;
257
257
258
258
PT_order_expr *expression =
0 commit comments