summaryrefslogtreecommitdiff
path: root/sql/field_conv.cc
diff options
context:
space:
mode:
authorunknown <ram@gw.mysql.r18.ru>2004-12-17 18:06:05 +0400
committerunknown <ram@gw.mysql.r18.ru>2004-12-17 18:06:05 +0400
commitd7285006cfcd93b13ec9c0f886ec542d7365fbfd (patch)
tree2e6c553f1097aea129caca8a5d200ff4f446a230 /sql/field_conv.cc
parenteaec00b19b0dfe26bbe4297edfea04e277af27ed (diff)
downloadmariadb-git-d7285006cfcd93b13ec9c0f886ec542d7365fbfd.tar.gz
bit type
Diffstat (limited to 'sql/field_conv.cc')
-rw-r--r--sql/field_conv.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/sql/field_conv.cc b/sql/field_conv.cc
index f6cc851639a..f0887d8343a 100644
--- a/sql/field_conv.cc
+++ b/sql/field_conv.cc
@@ -485,6 +485,9 @@ void (*Copy_field::get_copy_func(Field *to,Field *from))(Copy_field*)
}
else
{
+ if (to->real_type() == FIELD_TYPE_BIT ||
+ from->real_type() == FIELD_TYPE_BIT)
+ return do_field_int;
// Check if identical fields
if (from->result_type() == STRING_RESULT)
{