summaryrefslogtreecommitdiff
path: root/sql/sql_lex.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sql/sql_lex.cc')
-rw-r--r--sql/sql_lex.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/sql/sql_lex.cc b/sql/sql_lex.cc
index a302db15736..ac2d7e82fcf 100644
--- a/sql/sql_lex.cc
+++ b/sql/sql_lex.cc
@@ -1526,9 +1526,9 @@ void st_select_lex_unit::print(String *str)
{
if (sl != first_select())
{
- str->append(" union ", 7);
+ str->append(STRING_WITH_LEN(" union "));
if (union_all)
- str->append("all ", 4);
+ str->append(STRING_WITH_LEN("all "));
else if (union_distinct == sl)
union_all= TRUE;
}
@@ -1542,7 +1542,7 @@ void st_select_lex_unit::print(String *str)
{
if (fake_select_lex->order_list.elements)
{
- str->append(" order by ", 10);
+ str->append(STRING_WITH_LEN(" order by "));
fake_select_lex->print_order(str,
(ORDER *) fake_select_lex->
order_list.first);
@@ -1565,7 +1565,7 @@ void st_select_lex::print_order(String *str, ORDER *order)
else
(*order->item)->print(str);
if (!order->asc)
- str->append(" desc", 5);
+ str->append(STRING_WITH_LEN(" desc"));
if (order->next)
str->append(',');
}
@@ -1588,7 +1588,7 @@ void st_select_lex::print_limit(THD *thd, String *str)
if (explicit_limit)
{
- str->append(" limit ", 7);
+ str->append(STRING_WITH_LEN(" limit "));
if (offset_limit)
{
offset_limit->print(str);