summaryrefslogtreecommitdiff
path: root/sql/field.h
diff options
context:
space:
mode:
authorbar@mysql.com <>2004-08-19 15:15:10 +0500
committerbar@mysql.com <>2004-08-19 15:15:10 +0500
commit2496e85b84aad64a273dcb6ee45bb4a706c4b87d (patch)
tree01ac6df006d72fc8d39e0e1c185bc3c8bc11a7bb /sql/field.h
parent6b90806a4a5ee31ec9f5d9e59f1cd9e722dd1866 (diff)
downloadmariadb-git-2496e85b84aad64a273dcb6ee45bb4a706c4b87d.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;
};