diff options
author | unknown <monty@mysql.com> | 2004-12-19 20:25:19 +0200 |
---|---|---|
committer | unknown <monty@mysql.com> | 2004-12-19 20:25:19 +0200 |
commit | 069041031074d606e3cb084898ea2504e716e03a (patch) | |
tree | edce84855fbf08b0328dae28794074f565be89e6 /sql/sql_select.h | |
parent | 3fa699ef04e02070c9430adacee3a08b3f365e34 (diff) | |
download | mariadb-git-069041031074d606e3cb084898ea2504e716e03a.tar.gz |
Merge with global tree
Fixed some found bugs in BIT fields
Added more test cases for BIT fields and varchar
include/my_base.h:
Merge
Added HA_BIT_PART for easier test in key.cc
innobase/os/os0proc.c:
Fixed typo
myisam/mi_dbug.c:
Add printing of BIT types when debugging
mysql-test/r/show_check.result:
Set 'Avg_row_length' to # as this value is different between 32 and 64 bit machines
mysql-test/r/type_bit.result:
More tests
mysql-test/r/type_varchar.result:
More tests
mysql-test/t/show_check.test:
Set 'Avg_row_length' to # as this value is different between 32 and 64 bit machines
mysql-test/t/type_bit.test:
More tests
mysql-test/t/type_varchar.test:
More tests
sql/field.cc:
Added Field::val_int_as_str() to get better logging of bit fields
Merged new_key_field with move_field() to fix some problems with bit fields
Fixed some bugs with bit fields
sql/field.h:
Added Field::val_int_as_str() to get better logging of bit fields
Merged new_key_field with move_field() to fix some problems with bit fields
Fixed some bugs with bit fields
sql/ha_myisam.cc:
Fixed problem with unintialized memory (not critical)
sql/key.cc:
Fix so that 'key_cmp_if_same' works with bit fields.
sql/opt_range.cc:
Move declarations first in function
Nice printing of bit fields in debug log
sql/sql_prepare.cc:
Fixed old merge error (not critical)
sql/sql_select.cc:
Use new interface to new_key_field
sql/sql_select.h:
Use new interface to new_key_fields()
This fixes a bug with BIT fields where the upper bit of the data was not stored in the key buffer
sql/structs.h:
Extend key_part_flag to be able to add HA_BIT_PART to it
sql/table.cc:
Mark BIT key parts with HA_BIT_PART to make test in key.cc simpler
Diffstat (limited to 'sql/sql_select.h')
-rw-r--r-- | sql/sql_select.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/sql/sql_select.h b/sql/sql_select.h index be3a72836b4..0f26207b391 100644 --- a/sql/sql_select.h +++ b/sql/sql_select.h @@ -427,11 +427,8 @@ class store_key :public Sql_alloc field_arg->table, field_arg->charset()); } else - { - to_field=field_arg->new_key_field(thd->mem_root, field_arg->table); - if (to_field) - to_field->move_field(ptr, (uchar*) null, 1); - } + to_field=field_arg->new_key_field(thd->mem_root, field_arg->table, + ptr, (uchar*) null, 1); } virtual ~store_key() {} /* Not actually needed */ virtual bool copy()=0; |