• unknown's avatar
    Added more tests for new UPDATE ... ORDER BY ... LIMIT optimization · fbb96451
    unknown authored
    
    heap/_check.c:
      Change arguments to ha_key_cmp
    heap/hp_create.c:
      Change arguments to ha_key_cmp
    include/my_base.h:
      Remove SEARCH_RETURN_B_POS and instead always send an array to ha_key_cmp() as last argument
    myisam/mi_check.c:
      Change arguments to ha_key_cmp
    myisam/mi_rnext_same.c:
      Change arguments to ha_key_cmp
    myisam/mi_search.c:
      Change arguments to ha_key_cmp
    myisam/mi_write.c:
      Change arguments to ha_key_cmp
    myisammrg/myrg_queue.c:
      Change arguments to ha_key_cmp
    mysys/my_handler.c:
      Remove SEARCH_RETURN_B_POS and instead always send an array to ha_key_cmp() as last argument
      (This removes an if in a loop at the expensive of an int on the stack)
    sql/records.cc:
      Simplify new rr_index() code
      Create common error handling function for rr_() functions.
      Remove loop from rr_index() as handler::index_next() can never return HA_ERR_RECORD_DELETED
    sql/sql_load.cc:
      Simplify
    sql/sql_update.cc:
      Simplify code
      Fixed bug when one is updating an index column that could be used with ORDER BY
    sql/structs.h:
      Removed not needed structure element
    fbb96451
mi_search.c 56.4 KB