summaryrefslogtreecommitdiff
path: root/sql/item_cmpfunc.cc
diff options
context:
space:
mode:
authorunknown <igor@rurik.mysql.com>2005-11-22 23:00:57 -0800
committerunknown <igor@rurik.mysql.com>2005-11-22 23:00:57 -0800
commitc3c232a88cc911ccd6b59b80ec93cc8b3de51001 (patch)
treef8ae80abeb1f01b0ecf98787da39162a6013417a /sql/item_cmpfunc.cc
parent806482c7e45aceac81fe3999197d3a3724653c03 (diff)
parent4aea839bde48c615d2d672ebbd29f20c297fe670 (diff)
downloadmariadb-git-c3c232a88cc911ccd6b59b80ec93cc8b3de51001.tar.gz
Merge rurik.mysql.com:/home/igor/mysql-5.0
into rurik.mysql.com:/home/igor/dev/mysql-5.0-2 mysql-test/r/func_gconcat.result: Auto merged mysql-test/t/func_gconcat.test: Auto merged sql/item.cc: Auto merged sql/item.h: Auto merged sql/item_cmpfunc.cc: Auto merged sql/item_func.cc: Auto merged sql/item_strfunc.cc: Auto merged sql/item_subselect.cc: Auto merged sql/item_sum.cc: Auto merged sql/sql_base.cc: Auto merged sql/sql_class.cc: Auto merged sql/sql_class.h: Auto merged sql/sql_lex.cc: Auto merged sql/sql_lex.h: Auto merged sql/sql_parse.cc: Auto merged sql/sql_prepare.cc: Auto merged sql/sql_select.cc: Auto merged sql/sql_yacc.yy: Auto merged
Diffstat (limited to 'sql/item_cmpfunc.cc')
-rw-r--r--sql/item_cmpfunc.cc24
1 files changed, 12 insertions, 12 deletions
diff --git a/sql/item_cmpfunc.cc b/sql/item_cmpfunc.cc
index e77fb159d53..ca070131122 100644
--- a/sql/item_cmpfunc.cc
+++ b/sql/item_cmpfunc.cc
@@ -1175,10 +1175,10 @@ void Item_func_between::print(String *str)
str->append('(');
args[0]->print(str);
if (negated)
- str->append(" not", 4);
- str->append(" between ", 9);
+ str->append(STRING_WITH_LEN(" not"));
+ str->append(STRING_WITH_LEN(" between "));
args[1]->print(str);
- str->append(" and ", 5);
+ str->append(STRING_WITH_LEN(" and "));
args[2]->print(str);
str->append(')');
}
@@ -1793,7 +1793,7 @@ uint Item_func_case::decimal_precision() const
void Item_func_case::print(String *str)
{
- str->append("(case ", 6);
+ str->append(STRING_WITH_LEN("(case "));
if (first_expr_num != -1)
{
args[first_expr_num]->print(str);
@@ -1801,19 +1801,19 @@ void Item_func_case::print(String *str)
}
for (uint i=0 ; i < ncases ; i+=2)
{
- str->append("when ", 5);
+ str->append(STRING_WITH_LEN("when "));
args[i]->print(str);
- str->append(" then ", 6);
+ str->append(STRING_WITH_LEN(" then "));
args[i+1]->print(str);
str->append(' ');
}
if (else_expr_num != -1)
{
- str->append("else ", 5);
+ str->append(STRING_WITH_LEN("else "));
args[else_expr_num]->print(str);
str->append(' ');
}
- str->append("end)", 4);
+ str->append(STRING_WITH_LEN("end)"));
}
/*
@@ -2419,10 +2419,10 @@ void Item_func_in::print(String *str)
str->append('(');
args[0]->print(str);
if (negated)
- str->append(" not", 4);
- str->append(" in (", 5);
+ str->append(STRING_WITH_LEN(" not"));
+ str->append(STRING_WITH_LEN(" in ("));
print_args(str, 1);
- str->append("))", 2);
+ str->append(STRING_WITH_LEN("))"));
}
@@ -2894,7 +2894,7 @@ void Item_func_isnotnull::print(String *str)
{
str->append('(');
args[0]->print(str);
- str->append(" is not null)", 13);
+ str->append(STRING_WITH_LEN(" is not null)"));
}