summaryrefslogtreecommitdiff
path: root/sql/field.h
diff options
context:
space:
mode:
authorGeorgi Kodinov <kgeorge@mysql.com>2008-08-28 12:54:50 +0300
committerGeorgi Kodinov <kgeorge@mysql.com>2008-08-28 12:54:50 +0300
commit8b0e99fe26db6c41ae4bdddd31777e1f63638efe (patch)
tree458167977d24af9a6e787029172c907cc01999f3 /sql/field.h
parentaea2ff7064bf7739252ca2132ab8c3eb5cf6957c (diff)
parent31d76e8d526da59070f0c75cae0b9672c11a1b03 (diff)
downloadmariadb-git-8b0e99fe26db6c41ae4bdddd31777e1f63638efe.tar.gz
merge 5.0-bugteam -> 5.1-bugteam
Diffstat (limited to 'sql/field.h')
-rw-r--r--sql/field.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/sql/field.h b/sql/field.h
index 36f494f6e50..0d0d7fba116 100644
--- a/sql/field.h
+++ b/sql/field.h
@@ -147,7 +147,7 @@ public:
virtual bool eq(Field *field)
{
return (ptr == field->ptr && null_ptr == field->null_ptr &&
- null_bit == field->null_bit);
+ null_bit == field->null_bit && field->type() == type());
}
virtual bool eq_def(Field *field);
@@ -1960,7 +1960,6 @@ public:
bool eq(Field *field)
{
return (Field::eq(field) &&
- field->type() == type() &&
bit_ptr == ((Field_bit *)field)->bit_ptr &&
bit_ofs == ((Field_bit *)field)->bit_ofs);
}