Loading include/heap.h +4 −4 Original line number Diff line number Diff line Loading @@ -46,8 +46,8 @@ typedef struct st_heapinfo /* Struct from heap_info */ ulong records; /* Records in database */ ulong deleted; /* Deleted records in database */ ulong max_records; ulong data_length; ulong index_length; ulonglong data_length; ulonglong index_length; uint reclength; /* Length of one record */ int errkey; ulonglong auto_increment; Loading Loading @@ -135,7 +135,7 @@ typedef struct st_heap_share HP_BLOCK block; HP_KEYDEF *keydef; ulong min_records,max_records; /* Params to open */ ulong data_length,index_length,max_table_size; ulonglong data_length,index_length,max_table_size; uint key_stat_version; /* version to indicate insert/delete */ uint records; /* records */ uint blength; /* records rounded up to 2^n */ Loading Loading @@ -187,7 +187,7 @@ typedef struct st_heap_create_info { uint auto_key; /* keynr [1 - maxkey] for auto key */ uint auto_key_type; ulong max_table_size; ulonglong max_table_size; ulonglong auto_increment; my_bool with_auto_increment; } HP_CREATE_INFO; Loading mysql-test/r/show_check.result +1 −1 Original line number Diff line number Diff line Loading @@ -296,7 +296,7 @@ SET sql_quote_show_create= @old_sql_quote_show_create; SET sql_mode= @old_sql_mode; select @@max_heap_table_size; @@max_heap_table_size 1047552 1048576 CREATE TABLE t1 ( a int(11) default NULL, KEY a USING BTREE (a) Loading mysql-test/r/type_bit.result +8 −0 Original line number Diff line number Diff line Loading @@ -610,4 +610,12 @@ select hex(a), b from t1; hex(a) b 1 2 drop table t1; create table t1(bit_field bit(2), int_field int, key a(bit_field)); insert into t1 values (1,2); handler t1 open as t1; handler t1 read a=(1); bit_field int_field 2 handler t1 close; drop table t1; End of 5.0 tests mysql-test/t/type_bit.test +11 −0 Original line number Diff line number Diff line Loading @@ -261,4 +261,15 @@ insert into t1 (b, a) values ('2', '1'); select hex(a), b from t1; drop table t1; # # type was not properly initalized, which caused key_copy to fail # create table t1(bit_field bit(2), int_field int, key a(bit_field)); insert into t1 values (1,2); handler t1 open as t1; handler t1 read a=(1); handler t1 close; drop table t1; --echo End of 5.0 tests sql/ha_heap.cc +1 −1 Original line number Diff line number Diff line Loading @@ -631,7 +631,7 @@ int ha_heap::create(const char *name, TABLE *table_arg, } mem_per_row+= MY_ALIGN(share->reclength + 1, sizeof(char*)); max_rows = (ha_rows) (table->in_use->variables.max_heap_table_size / mem_per_row); (ulonglong) mem_per_row); if (table_arg->found_next_number_field) { keydef[share->next_number_index].flag|= HA_AUTO_KEY; Loading Loading
include/heap.h +4 −4 Original line number Diff line number Diff line Loading @@ -46,8 +46,8 @@ typedef struct st_heapinfo /* Struct from heap_info */ ulong records; /* Records in database */ ulong deleted; /* Deleted records in database */ ulong max_records; ulong data_length; ulong index_length; ulonglong data_length; ulonglong index_length; uint reclength; /* Length of one record */ int errkey; ulonglong auto_increment; Loading Loading @@ -135,7 +135,7 @@ typedef struct st_heap_share HP_BLOCK block; HP_KEYDEF *keydef; ulong min_records,max_records; /* Params to open */ ulong data_length,index_length,max_table_size; ulonglong data_length,index_length,max_table_size; uint key_stat_version; /* version to indicate insert/delete */ uint records; /* records */ uint blength; /* records rounded up to 2^n */ Loading Loading @@ -187,7 +187,7 @@ typedef struct st_heap_create_info { uint auto_key; /* keynr [1 - maxkey] for auto key */ uint auto_key_type; ulong max_table_size; ulonglong max_table_size; ulonglong auto_increment; my_bool with_auto_increment; } HP_CREATE_INFO; Loading
mysql-test/r/show_check.result +1 −1 Original line number Diff line number Diff line Loading @@ -296,7 +296,7 @@ SET sql_quote_show_create= @old_sql_quote_show_create; SET sql_mode= @old_sql_mode; select @@max_heap_table_size; @@max_heap_table_size 1047552 1048576 CREATE TABLE t1 ( a int(11) default NULL, KEY a USING BTREE (a) Loading
mysql-test/r/type_bit.result +8 −0 Original line number Diff line number Diff line Loading @@ -610,4 +610,12 @@ select hex(a), b from t1; hex(a) b 1 2 drop table t1; create table t1(bit_field bit(2), int_field int, key a(bit_field)); insert into t1 values (1,2); handler t1 open as t1; handler t1 read a=(1); bit_field int_field 2 handler t1 close; drop table t1; End of 5.0 tests
mysql-test/t/type_bit.test +11 −0 Original line number Diff line number Diff line Loading @@ -261,4 +261,15 @@ insert into t1 (b, a) values ('2', '1'); select hex(a), b from t1; drop table t1; # # type was not properly initalized, which caused key_copy to fail # create table t1(bit_field bit(2), int_field int, key a(bit_field)); insert into t1 values (1,2); handler t1 open as t1; handler t1 read a=(1); handler t1 close; drop table t1; --echo End of 5.0 tests
sql/ha_heap.cc +1 −1 Original line number Diff line number Diff line Loading @@ -631,7 +631,7 @@ int ha_heap::create(const char *name, TABLE *table_arg, } mem_per_row+= MY_ALIGN(share->reclength + 1, sizeof(char*)); max_rows = (ha_rows) (table->in_use->variables.max_heap_table_size / mem_per_row); (ulonglong) mem_per_row); if (table_arg->found_next_number_field) { keydef[share->next_number_index].flag|= HA_AUTO_KEY; Loading