diff options
author | unknown <bar@bar.mysql.r18.ru> | 2003-03-04 12:33:52 +0400 |
---|---|---|
committer | unknown <bar@bar.mysql.r18.ru> | 2003-03-04 12:33:52 +0400 |
commit | 7e2aca564e765934ff352f3207a77600ab721771 (patch) | |
tree | 3667f04b4e731d43aed2a2e5149a8a1e259518bd /sql/field.h | |
parent | 9d02a87cf34e76faf2692a7f3a8bcd0cc5d1bd33 (diff) | |
download | mariadb-git-7e2aca564e765934ff352f3207a77600ab721771.tar.gz |
Fix for SHOW, it didn't display CHARACTER SET and COLLATE clause
for binary collations
Diffstat (limited to 'sql/field.h')
-rw-r--r-- | sql/field.h | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/sql/field.h b/sql/field.h index 04225158270..37d194ac372 100644 --- a/sql/field.h +++ b/sql/field.h @@ -160,8 +160,6 @@ public: { get_image(buff,length,cs); } virtual void set_key_image(char *buff,uint length, CHARSET_INFO *cs) { set_image(buff,length,cs); } - inline int cmp_image(char *buff,uint length) - { return memcmp(ptr,buff,length); } inline longlong val_int_offset(uint row_offset) { ptr+=row_offset; @@ -265,7 +263,7 @@ public: unireg_check_arg, field_name_arg, table_arg) { field_charset=charset; - if (binary()) + if (charset->state & MY_CS_BINSORT) flags|=BINARY_FLAG; } Item_result result_type () const { return STRING_RESULT; } @@ -277,13 +275,6 @@ public: void set_charset(CHARSET_INFO *charset) { field_charset=charset; } bool binary() const { return field_charset->state & MY_CS_BINSORT ? 1 : 0; } - inline int cmp_image(char *buff,uint length) - { - if (binary()) - return memcmp(ptr,buff,length); - else - return my_strncasecmp(field_charset,ptr,buff,length); - } friend class create_field; }; |