summaryrefslogtreecommitdiff
path: root/sql/item_cmpfunc.h
diff options
context:
space:
mode:
authorunknown <bell@sanja.is.com.ua>2002-11-28 09:11:35 +0200
committerunknown <bell@sanja.is.com.ua>2002-11-28 09:11:35 +0200
commitfb4dc27cf7134485dcc92aece11ba37b25e8d5fd (patch)
tree4145a19ad125ca3f6ebe89fe6beae56d3cc5b62c /sql/item_cmpfunc.h
parentbebac6db39d606523442363abebbfb797a9b3237 (diff)
downloadmariadb-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.h8
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; }