summaryrefslogtreecommitdiff
path: root/sql/field.h
diff options
context:
space:
mode:
authorunknown <bar@mysql.com>2004-08-19 15:15:10 +0500
committerunknown <bar@mysql.com>2004-08-19 15:15:10 +0500
commit7fbc796d4ad9681fa2381791f8c895be4cbd738b (patch)
tree01ac6df006d72fc8d39e0e1c185bc3c8bc11a7bb /sql/field.h
parent6cf9fd7cdb9d102ee1e12408f5a8e871d069618d (diff)
downloadmariadb-git-7fbc796d4ad9681fa2381791f8c895be4cbd738b.tar.gz
Bug#4521: unique key prefix interacts poorly with utf8.
Fix for binary collations for MyISAM and HEAP BTREE. This patch also changes trailing spaces behaviour for binary collations. Binary collations now have PAD characteristic too.
Diffstat (limited to 'sql/field.h')
-rw-r--r--sql/field.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/field.h b/sql/field.h
index fe06cd96f1a..83c5a71f07f 100644
--- a/sql/field.h
+++ b/sql/field.h
@@ -357,7 +357,7 @@ public:
uint size_of() const { return sizeof(*this); }
CHARSET_INFO *charset(void) const { return field_charset; }
void set_charset(CHARSET_INFO *charset) { field_charset=charset; }
- bool binary() const { return field_charset->state & MY_CS_BINSORT ? 1 : 0; }
+ bool binary() const { return field_charset == &my_charset_bin; }
uint32 max_length() { return field_length; }
friend class create_field;
};