From 5eae17bc3c82bdb7d4fe55b4b4f57ecd1b63539c Mon Sep 17 00:00:00 2001 From: "aivanov@mysql.com" <> Date: Fri, 9 Sep 2005 19:06:15 +0400 Subject: [PATCH] BUG #12101: Additional fix. --- sql/item_cmpfunc.cc | 4 ++++ 1 file changed, 4 insertions(+) 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);