summaryrefslogtreecommitdiff
path: root/sql/item_subselect.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sql/item_subselect.cc')
-rw-r--r--sql/item_subselect.cc26
1 files changed, 13 insertions, 13 deletions
diff --git a/sql/item_subselect.cc b/sql/item_subselect.cc
index 8afc885e59b..f2d6f2b5899 100644
--- a/sql/item_subselect.cc
+++ b/sql/item_subselect.cc
@@ -533,7 +533,7 @@ Item_exists_subselect::Item_exists_subselect(st_select_lex *select_lex):
void Item_exists_subselect::print(String *str)
{
- str->append("exists", 6);
+ str->append(STRING_WITH_LEN("exists"));
Item_subselect::print(str);
}
@@ -1339,11 +1339,11 @@ err:
void Item_in_subselect::print(String *str)
{
if (transformed)
- str->append("<exists>", 8);
+ str->append(STRING_WITH_LEN("<exists>"));
else
{
left_expr->print(str);
- str->append(" in ", 4);
+ str->append(STRING_WITH_LEN(" in "));
}
Item_subselect::print(str);
}
@@ -1362,7 +1362,7 @@ Item_allany_subselect::select_transformer(JOIN *join)
void Item_allany_subselect::print(String *str)
{
if (transformed)
- str->append("<exists>", 8);
+ str->append(STRING_WITH_LEN("<exists>"));
else
{
left_expr->print(str);
@@ -1794,16 +1794,16 @@ void subselect_union_engine::print(String *str)
void subselect_uniquesubquery_engine::print(String *str)
{
- str->append("<primary_index_lookup>(", 23);
+ str->append(STRING_WITH_LEN("<primary_index_lookup>("));
tab->ref.items[0]->print(str);
- str->append(" in ", 4);
+ str->append(STRING_WITH_LEN(" in "));
str->append(tab->table->s->table_name);
KEY *key_info= tab->table->key_info+ tab->ref.key;
- str->append(" on ", 4);
+ str->append(STRING_WITH_LEN(" on "));
str->append(key_info->name);
if (cond)
{
- str->append(" where ", 7);
+ str->append(STRING_WITH_LEN(" where "));
cond->print(str);
}
str->append(')');
@@ -1812,18 +1812,18 @@ void subselect_uniquesubquery_engine::print(String *str)
void subselect_indexsubquery_engine::print(String *str)
{
- str->append("<index_lookup>(", 15);
+ str->append(STRING_WITH_LEN("<index_lookup>("));
tab->ref.items[0]->print(str);
- str->append(" in ", 4);
+ str->append(STRING_WITH_LEN(" in "));
str->append(tab->table->s->table_name);
KEY *key_info= tab->table->key_info+ tab->ref.key;
- str->append(" on ", 4);
+ str->append(STRING_WITH_LEN(" on "));
str->append(key_info->name);
if (check_null)
- str->append(" checking NULL", 14);
+ str->append(STRING_WITH_LEN(" checking NULL"));
if (cond)
{
- str->append(" where ", 7);
+ str->append(STRING_WITH_LEN(" where "));
cond->print(str);
}
str->append(')');