summaryrefslogtreecommitdiff
path: root/sql/field.h
diff options
context:
space:
mode:
authorunknown <lars@mysql.com>2006-02-27 19:26:31 +0100
committerunknown <lars@mysql.com>2006-02-27 19:26:31 +0100
commitfedf61311b0be3f1656059735470c9ac6d30d108 (patch)
treeb3490f6a84989676eb61774ba8786f26081d53c9 /sql/field.h
parent2efabfd11a6fa5621c851a472c076e4ef5184d6d (diff)
parentf9804136bd230c1467b9cb3849cf87bcde40015a (diff)
downloadmariadb-git-fedf61311b0be3f1656059735470c9ac6d30d108.tar.gz
Merge mysql.com:/users/lthalmann/bkroot/mysql-5.0
into mysql.com:/users/lthalmann/bk/mysql-5.0-bug13418 sql/field.h: Auto merged
Diffstat (limited to 'sql/field.h')
-rw-r--r--sql/field.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/sql/field.h b/sql/field.h
index 827eb708e94..e8dd7f05f99 100644
--- a/sql/field.h
+++ b/sql/field.h
@@ -166,8 +166,9 @@ public:
virtual int cmp(const char *,const char *)=0;
virtual int cmp_binary(const char *a,const char *b, uint32 max_length=~0L)
{ return memcmp(a,b,pack_length()); }
- int cmp_offset(uint row_offset) { return cmp(ptr,ptr+row_offset); }
- int cmp_binary_offset(uint row_offset)
+ virtual int cmp_offset(uint row_offset)
+ { return cmp(ptr,ptr+row_offset); }
+ virtual int cmp_binary_offset(uint row_offset)
{ return cmp_binary(ptr, ptr+row_offset); };
virtual int key_cmp(const byte *a,const byte *b)
{ return cmp((char*) a,(char*) b); }
@@ -1327,6 +1328,8 @@ public:
{ return cmp_binary((char *) a, (char *) b); }
int key_cmp(const byte *str, uint length);
int cmp_offset(uint row_offset);
+ int cmp_binary_offset(uint row_offset)
+ { return cmp_offset(row_offset); }
void get_key_image(char *buff, uint length, imagetype type);
void set_key_image(char *buff, uint length)
{ Field_bit::store(buff, length, &my_charset_bin); }