Commit 7a7a0ae8 authored by serg@build.mysql2.com's avatar serg@build.mysql2.com

COUNT(*) for merge can be longlong even if it's long for MyISAM

parent dd1ed20d
...@@ -184,8 +184,8 @@ void ha_myisammrg::info(uint flag) ...@@ -184,8 +184,8 @@ void ha_myisammrg::info(uint flag)
{ {
MYMERGE_INFO info; MYMERGE_INFO info;
(void) myrg_status(file,&info,flag); (void) myrg_status(file,&info,flag);
records = (ha_rows) info.records; records = info.records;
deleted = (ha_rows) info.deleted; deleted = info.deleted;
data_file_length=info.data_file_length; data_file_length=info.data_file_length;
errkey = info.errkey; errkey = info.errkey;
table->keys_in_use= set_bits(key_map, table->keys); table->keys_in_use= set_bits(key_map, table->keys);
......
...@@ -192,8 +192,8 @@ class handler :public Sql_alloc ...@@ -192,8 +192,8 @@ class handler :public Sql_alloc
byte *dupp_ref; /* Pointer to dupp row */ byte *dupp_ref; /* Pointer to dupp row */
uint ref_length; /* Length of ref (1-8) */ uint ref_length; /* Length of ref (1-8) */
uint block_size; /* index block size */ uint block_size; /* index block size */
ha_rows records; /* Records i datafilen */ ulonglong records; /* Records i datafilen */
ha_rows deleted; /* Deleted records */ ulonglong deleted; /* Deleted records */
ulonglong data_file_length; /* Length off data file */ ulonglong data_file_length; /* Length off data file */
ulonglong max_data_file_length; /* Length off data file */ ulonglong max_data_file_length; /* Length off data file */
ulonglong index_file_length; ulonglong index_file_length;
......
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