mirror of
https://github.com/MariaDB/server.git
synced 2025-08-07 00:04:31 +03:00
ha_innodb.h, ha_innodb.cc:
Remove the flag HA_NOT_READ_PREFIX_LAST because ORDER BY orders wrong then; also remove the diagnostic print to avoid cluttering the error log sql/ha_innodb.cc: Remove the flag HA_NOT_READ_PREFIX_LAST because ORDER BY orders wrong then; also remove the diagnostic print to avoid cluttering the error log sql/ha_innodb.h: Remove the flag HA_NOT_READ_PREFIX_LAST because ORDER BY orders wrong then; also remove the diagnostic print to avoid cluttering the error log
This commit is contained in:
@@ -2180,9 +2180,9 @@ convert_search_mode_to_innobase(
|
|||||||
case HA_READ_BEFORE_KEY: return(PAGE_CUR_L);
|
case HA_READ_BEFORE_KEY: return(PAGE_CUR_L);
|
||||||
case HA_READ_PREFIX: return(PAGE_CUR_GE);
|
case HA_READ_PREFIX: return(PAGE_CUR_GE);
|
||||||
case HA_READ_PREFIX_LAST:
|
case HA_READ_PREFIX_LAST:
|
||||||
ut_print_timestamp(stderr);
|
/* ut_print_timestamp(stderr);
|
||||||
fprintf(stderr,
|
fprintf(stderr,
|
||||||
" InnoDB: Warning: Using HA_READ_PREFIX_LAST\n");
|
" InnoDB: Warning: Using HA_READ_PREFIX_LAST\n"); */
|
||||||
return(PAGE_CUR_LE);
|
return(PAGE_CUR_LE);
|
||||||
|
|
||||||
/* InnoDB does not yet support ..PREFIX_LAST!
|
/* InnoDB does not yet support ..PREFIX_LAST!
|
||||||
|
@@ -81,8 +81,11 @@ class ha_innobase: public handler
|
|||||||
HA_NO_WRITE_DELAYED |
|
HA_NO_WRITE_DELAYED |
|
||||||
HA_PRIMARY_KEY_IN_READ_INDEX |
|
HA_PRIMARY_KEY_IN_READ_INDEX |
|
||||||
HA_DROP_BEFORE_CREATE |
|
HA_DROP_BEFORE_CREATE |
|
||||||
|
/* We should also list HA_NOT_READ_PREFIX_LAST
|
||||||
|
here but it currently seems to break ORDER BY;
|
||||||
|
until release 4.0.5 some LIKE 'abc%' ... DESC
|
||||||
|
queries will not work correctly */
|
||||||
HA_NO_PREFIX_CHAR_KEYS |
|
HA_NO_PREFIX_CHAR_KEYS |
|
||||||
HA_NOT_READ_PREFIX_LAST |
|
|
||||||
HA_TABLE_SCAN_ON_INDEX),
|
HA_TABLE_SCAN_ON_INDEX),
|
||||||
last_dup_key((uint) -1),
|
last_dup_key((uint) -1),
|
||||||
start_of_scan(0)
|
start_of_scan(0)
|
||||||
|
Reference in New Issue
Block a user