summaryrefslogtreecommitdiff
path: root/sql/item.cc
diff options
context:
space:
mode:
authorbar@mysql.com <>2004-09-16 11:12:49 +0500
committerbar@mysql.com <>2004-09-16 11:12:49 +0500
commite39a5033f2933d4e73423d66059dc52e2c8f0ae5 (patch)
treef3934adcaedf177be527e8c96a355c43343f8a38 /sql/item.cc
parent251fe25bf83897e62bcc1f6611c4c6da234279ce (diff)
downloadmariadb-git-e39a5033f2933d4e73423d66059dc52e2c8f0ae5.tar.gz
item.cc:
Bug #5561 No BINARY_FLAG in metadata
Diffstat (limited to 'sql/item.cc')
-rw-r--r--sql/item.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/sql/item.cc b/sql/item.cc
index e9ef3b6a763..1e090333bf4 100644
--- a/sql/item.cc
+++ b/sql/item.cc
@@ -1415,7 +1415,9 @@ void Item::init_make_field(Send_field *tmp_field,
tmp_field->table_name= empty_name;
tmp_field->col_name= name;
tmp_field->charsetnr= collation.collation->number;
- tmp_field->flags=maybe_null ? 0 : NOT_NULL_FLAG;
+ tmp_field->flags= (maybe_null ? 0 : NOT_NULL_FLAG) |
+ (my_binary_compare(collation.collation) ?
+ BINARY_FLAG : 0);
tmp_field->type=field_type;
tmp_field->length=max_length;
tmp_field->decimals=decimals;