diff options
author | heikki@hundin.mysql.fi <> | 2003-04-17 02:28:40 +0300 |
---|---|---|
committer | heikki@hundin.mysql.fi <> | 2003-04-17 02:28:40 +0300 |
commit | 3a77f47a04cf20716cee8a205c49c65e6cfdbd91 (patch) | |
tree | fe38cf2b4bce797b5c6a405c301fc3e22a92e800 /sql | |
parent | 5112674d7079af706e93bca7e4de4c2a82b4ad87 (diff) | |
download | mariadb-git-3a77f47a04cf20716cee8a205c49c65e6cfdbd91.tar.gz |
ha_innodb.cc, row0sel.c, row0mysql.c, row0mysql.h:
Allow HANDLER PREV and NEXT also after positioning the cursor with a unique search on the primary key
Diffstat (limited to 'sql')
-rw-r--r-- | sql/ha_innodb.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sql/ha_innodb.cc b/sql/ha_innodb.cc index edafc142fd3..30d44f183a4 100644 --- a/sql/ha_innodb.cc +++ b/sql/ha_innodb.cc @@ -601,7 +601,7 @@ innobase_invalidate_query_cache( Call this when you have opened a new table handle in HANDLER, before you call index_read_idx() etc. Actually, we can let the cursor stay open even over a transaction commit! Then you should call this before every operation, -fecth next etc. This function inits the necessary things even after a +fetch next etc. This function inits the necessary things even after a transaction commit. */ void @@ -648,6 +648,8 @@ ha_innobase::init_table_handle_for_HANDLER(void) we???? */ prebuilt->read_just_key = FALSE; + + prebuilt->used_in_HANDLER = TRUE; } /************************************************************************* @@ -4048,6 +4050,8 @@ ha_innobase::external_lock( trx->mysql_n_tables_locked = 0; + prebuilt->used_in_HANDLER = FALSE; + /* Here we release the search latch and InnoDB thread FIFO ticket if they were reserved. */ |