summaryrefslogtreecommitdiff
path: root/sql/item_cmpfunc.h
diff options
context:
space:
mode:
authorevgen@moonbone.local <>2005-08-31 00:54:41 +0400
committerevgen@moonbone.local <>2005-08-31 00:54:41 +0400
commitdc53ac6d1f43ffc344e419c285ff10ec6c2aba23 (patch)
tree88025b32e2e1997b7ec885c10b2f03a7d1fcfcc6 /sql/item_cmpfunc.h
parent2b0c81c984af1ab4d9f30b2d089102a13f507079 (diff)
downloadmariadb-git-dc53ac6d1f43ffc344e419c285ff10ec6c2aba23.tar.gz
Fix bug #12489 wrongly printed strcmp() function results in creation of broken
view. For Item_func_strcmp print() was not defined and for this class was called print_op of it's parent class. Because of this strcmp() was printed wrongly and this results int creation of broken view. Added function Item_func_strcmp::print() which correctly prints strcmp() function.
Diffstat (limited to 'sql/item_cmpfunc.h')
-rw-r--r--sql/item_cmpfunc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/item_cmpfunc.h b/sql/item_cmpfunc.h
index 6b0cf3e80c2..1915dbaabf6 100644
--- a/sql/item_cmpfunc.h
+++ b/sql/item_cmpfunc.h
@@ -427,6 +427,7 @@ public:
longlong val_int();
optimize_type select_optimize() const { return OPTIMIZE_NONE; }
const char *func_name() const { return "strcmp"; }
+ void print(String *str) { Item_func::print(str); }
};