pappa@c-5608e253.1238-1-64736c10.cust.bredbandsbolaget.se
4282ad92cb
Bug #12796 : Record lost in HEAP table
...
Two handler objects were present, one was used for an insert and the other for a select
The state of the statistics was local to the handler object and thus the other handler
object didn't notice the insert.
Fix included:
1) Add a new variable key_stat_version added to whenever statistics was considered in need
of update (previously key_stats_ok= FALSE in those places)
2) Add a new handler variable key_stat_version assigned whenever key_stats_ok= TRUE was set
previously
3) Fix records_in_range to return records if records <= 1
4) Fix records_in_range to add 2 to rec_per_key to ensure we don't specify 0 or 1 when it isn't
and thus invoking incorrect optimisations.
5) Fix unique key handling for HEAP table in records_in_range
2005-11-08 00:26:37 -05:00
monty@mysql.com
3e653fb922
Added more tests for new UPDATE ... ORDER BY ... LIMIT optimization
2005-10-25 02:27:40 +03:00
monty@mysql.com
fde941e5b4
Partly reverty back patch (in heap-auto-increment-key detection) to ensure that auto_key and auto_key_type are calculated the same way
2005-03-16 01:15:45 +02:00
ramil@mysql.com
46613bafbe
A fix (bug #8489 : Strange auto_increment behaviour with HEAP table).
2005-03-15 13:32:12 +04:00
serg@serg.mylan
367bcf8c40
limit HEAP table size with max_heap_table_size, better estimation for mem_per_row
2005-01-14 19:49:45 +01:00
ram@gw.mysql.r18.ru
3b111a9b42
A fix (bug #6878 : Crash with engine=memory).
2004-12-02 15:06:15 +04:00
sergefp@mysql.com
2c9d2cf671
Fix for bug#5138: hash indexes on heap tables support statistics.
...
KEY::rec_per_key is updated every time 1/HEAP_STATS_UPDATE_THRESHOLD part of table records has been changed.
2004-09-08 02:07:53 +04:00
monty@mashka.mysql.fi
4f7512160b
After merge fixes
...
Use server character set if --default-character-set is not used
Added convert_string() for more efficient alloc+character-set convert of strings
2003-08-19 00:08:08 +03:00
monty@mashka.mysql.fi
9d0f0402a7
Fixed bug when creating keys in temporary HEAP tables.
...
(This caused the DISTINCT test to fail)
Removed one inline as this caused compiler problems
2002-12-02 17:52:22 +02:00
ram@mysql.r18.ru
5991e3fc54
fix for byte ordering bug in HEAP rb-tree
2002-11-19 18:48:22 +04:00
ram@mysql.r18.ru
2e1a0c031a
auto_increment for heap tables
...
test case
2002-10-07 17:49:03 +05:00
ram@mysql.r18.ru
032a4a927a
Additional key segment (HA_KEYTYPE_END) creation has been moved from handler to hp_create.c
2002-10-03 14:55:02 +05:00
ram@gw.udmsearch.izhnet.ru
5953779053
heap_create() <-> heap_open()
2002-06-07 16:47:36 +05:00
bar@gw.udmsearch.izhnet.ru
eab2893dac
RB-Tree indexes support in HEAP tables
...
Renamed _hp_func -> hp_func
mi_key_cmp moved to /mysys/my_handler.c
New tests for HEAP tables
2002-04-25 13:36:55 +05:00
monty@hundin.mysql.fi
b658662ae4
Update copyright
...
Fixed memory leak on shutdown (Affects the embedded version & MyODBC)
2001-12-06 14:10:51 +02:00
monty@hundin.mysql.fi
a1be2a894f
Fix of UNION code
...
Added heap_delete_table
Added HA_EXTRA_PREPARE_FOR_DELETE
Added and use my_dup() for faster open of tables.
Removed not working no-mix-table-type
2001-08-19 14:43:51 +03:00
bk@work.mysql.com
f4c589ff6c
Import changeset
2000-07-31 21:29:14 +02:00