Commit 7f4df541 authored by unknown's avatar unknown

Merge work:/home/bk/mysql-4.0

into mysql.sashanet.com:/home/sasha/src/bk/mysql-4.0


BitKeeper/etc/ignore:
  auto-union
BitKeeper/etc/logging_ok:
  auto-union
sql/slave.cc:
  Auto merged
sql/sql_repl.cc:
  Auto merged
parents 14cc2b78 1a2b5bb0
...@@ -119,6 +119,7 @@ bdb/include/gen_server_ext.h ...@@ -119,6 +119,7 @@ bdb/include/gen_server_ext.h
bdb/include/hash_auto.h bdb/include/hash_auto.h
bdb/include/log_auto.h bdb/include/log_auto.h
bdb/include/qam_auto.h bdb/include/qam_auto.h
bdb/include/rpc_server_ext.h
bdb/include/txn_auto.h bdb/include/txn_auto.h
bdb/java/src/com/sleepycat/db/DbConstants.java bdb/java/src/com/sleepycat/db/DbConstants.java
bdb/log/log_auto.c bdb/log/log_auto.c
...@@ -183,6 +184,7 @@ libmysql_r/acconfig.h ...@@ -183,6 +184,7 @@ libmysql_r/acconfig.h
libmysql_r/conf_to_src libmysql_r/conf_to_src
libmysql_r/my_static.h libmysql_r/my_static.h
libmysql_r/mysys_priv.h libmysql_r/mysys_priv.h
libmysqld/backup_dir
libmysqld/convert.cc libmysqld/convert.cc
libmysqld/derror.cc libmysqld/derror.cc
libmysqld/errmsg.c libmysqld/errmsg.c
...@@ -222,12 +224,14 @@ libmysqld/opt_sum.cc ...@@ -222,12 +224,14 @@ libmysqld/opt_sum.cc
libmysqld/password.c libmysqld/password.c
libmysqld/procedure.cc libmysqld/procedure.cc
libmysqld/records.cc libmysqld/records.cc
libmysqld/simple-test
libmysqld/slave.cc libmysqld/slave.cc
libmysqld/sql_acl.cc libmysqld/sql_acl.cc
libmysqld/sql_analyse.cc libmysqld/sql_analyse.cc
libmysqld/sql_base.cc libmysqld/sql_base.cc
libmysqld/sql_cache.cc libmysqld/sql_cache.cc
libmysqld/sql_class.cc libmysqld/sql_class.cc
libmysqld/sql_command
libmysqld/sql_crypt.cc libmysqld/sql_crypt.cc
libmysqld/sql_db.cc libmysqld/sql_db.cc
libmysqld/sql_delete.cc libmysqld/sql_delete.cc
...@@ -355,6 +359,3 @@ support-files/mysql.server ...@@ -355,6 +359,3 @@ support-files/mysql.server
support-files/mysql.spec support-files/mysql.spec
tags tags
tmp/* tmp/*
libmysqld/sql_command
libmysqld/backup_dir
libmysqld/simple-test
...@@ -811,7 +811,7 @@ int composite_key_cmp(void* arg, byte* key1, byte* key2) ...@@ -811,7 +811,7 @@ int composite_key_cmp(void* arg, byte* key1, byte* key2)
{ {
int res; int res;
Field* f = *field; Field* f = *field;
int len = f->field_length; int len = f->pack_length();
switch((*field)->type()) switch((*field)->type())
{ {
case FIELD_TYPE_STRING: case FIELD_TYPE_STRING:
...@@ -921,7 +921,7 @@ bool Item_sum_count_distinct::setup(THD *thd) ...@@ -921,7 +921,7 @@ bool Item_sum_count_distinct::setup(THD *thd)
compare_key = (qsort_cmp2)simple_raw_key_cmp; compare_key = (qsort_cmp2)simple_raw_key_cmp;
break; break;
} }
cmp_arg = (void*)(key_len = field->field_length); cmp_arg = (void*)(key_len = field->pack_length());
rec_offset = 1; rec_offset = 1;
} }
else // too bad, cannot cheat - there is more than one field else // too bad, cannot cheat - there is more than one field
...@@ -931,7 +931,7 @@ bool Item_sum_count_distinct::setup(THD *thd) ...@@ -931,7 +931,7 @@ bool Item_sum_count_distinct::setup(THD *thd)
field_end = (field = table->field) + table->fields; field_end = (field = table->field) + table->fields;
for(key_len = 0; field < field_end; ++field) for(key_len = 0; field < field_end; ++field)
{ {
key_len += (*field)->field_length; key_len += (*field)->pack_length();
if(!(*field)->binary()) if(!(*field)->binary())
all_binary = 0; all_binary = 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment