summaryrefslogtreecommitdiff
path: root/sql/item_cmpfunc.cc
diff options
context:
space:
mode:
authorunknown <aivanov@mysql.com>2005-09-09 19:06:15 +0400
committerunknown <aivanov@mysql.com>2005-09-09 19:06:15 +0400
commit26f8e9c933722406952bbe939245d31a8259ced0 (patch)
tree9071d194a8113acc4d0823094b118ff115a8011b /sql/item_cmpfunc.cc
parent9f2b113a8786a839c941bac134fd8856ab7c6b32 (diff)
downloadmariadb-git-26f8e9c933722406952bbe939245d31a8259ced0.tar.gz
BUG #12101: Additional fix.
sql/item_cmpfunc.cc: Modified Item_func_between::print(), Item_func_in::print(). Item_func_between/in objects represent now [NOT]BETWEEN/IN expressions.
Diffstat (limited to 'sql/item_cmpfunc.cc')
-rw-r--r--sql/item_cmpfunc.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/sql/item_cmpfunc.cc b/sql/item_cmpfunc.cc
index 936dac393b9..f547a8a50a8 100644
--- a/sql/item_cmpfunc.cc
+++ b/sql/item_cmpfunc.cc
@@ -983,6 +983,8 @@ void Item_func_between::print(String *str)
{
str->append('(');
args[0]->print(str);
+ if (negated)
+ str->append(" not", 4);
str->append(" between ", 9);
args[1]->print(str);
str->append(" and ", 5);
@@ -1969,6 +1971,8 @@ void Item_func_in::print(String *str)
{
str->append('(');
args[0]->print(str);
+ if (negated)
+ str->append(" not", 4);
str->append(" in (", 5);
print_args(str, 1);
str->append("))", 2);