diff options
author | evgen@moonbone.local <> | 2005-08-31 00:54:41 +0400 |
---|---|---|
committer | evgen@moonbone.local <> | 2005-08-31 00:54:41 +0400 |
commit | dc53ac6d1f43ffc344e419c285ff10ec6c2aba23 (patch) | |
tree | 88025b32e2e1997b7ec885c10b2f03a7d1fcfcc6 /sql/item_cmpfunc.h | |
parent | 2b0c81c984af1ab4d9f30b2d089102a13f507079 (diff) | |
download | mariadb-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.h | 1 |
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); } }; |