diff options
author | unknown <bell@sanja.is.com.ua> | 2002-11-28 09:11:35 +0200 |
---|---|---|
committer | unknown <bell@sanja.is.com.ua> | 2002-11-28 09:11:35 +0200 |
commit | fb4dc27cf7134485dcc92aece11ba37b25e8d5fd (patch) | |
tree | 4145a19ad125ca3f6ebe89fe6beae56d3cc5b62c /sql/item_cmpfunc.h | |
parent | bebac6db39d606523442363abebbfb797a9b3237 (diff) | |
download | mariadb-git-fb4dc27cf7134485dcc92aece11ba37b25e8d5fd.tar.gz |
Item_func_equal made uniform
mysql-test/r/row_test.result:
Equal test
mysql-test/t/row_test.test:
Equal test
Diffstat (limited to 'sql/item_cmpfunc.h')
-rw-r--r-- | sql/item_cmpfunc.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sql/item_cmpfunc.h b/sql/item_cmpfunc.h index b9511e82e32..ca03d02aa77 100644 --- a/sql/item_cmpfunc.h +++ b/sql/item_cmpfunc.h @@ -34,8 +34,9 @@ class Item_bool_func2 :public Item_int_func { /* Bool with 2 string args */ protected: String tmp_value1,tmp_value2; + bool equal; public: - Item_bool_func2(Item *a,Item *b) :Item_int_func(a,b) {} + Item_bool_func2(Item *a,Item *b) :Item_int_func(a,b), equal(0) {} void fix_length_and_dec(); void set_cmp_func() { @@ -85,11 +86,10 @@ public: const char *func_name() const { return "="; } }; -class Item_func_equal :public Item_bool_func2 +class Item_func_equal :public Item_bool_rowready_func2 { - Item_result cmp_result_type; public: - Item_func_equal(Item *a,Item *b) :Item_bool_func2(a,b) { }; + Item_func_equal(Item *a,Item *b) :Item_bool_rowready_func2(a,b) { equal=1; }; longlong val_int(); void fix_length_and_dec(); enum Functype functype() const { return EQUAL_FUNC; } |