diff options
author | unknown <monty@hundin.mysql.fi> | 2002-01-16 01:08:29 +0200 |
---|---|---|
committer | unknown <monty@hundin.mysql.fi> | 2002-01-16 01:08:29 +0200 |
commit | 40c146f6a22e7397d9e5d1880b29f2c88fb39eda (patch) | |
tree | 04255ad8dbcf3e3e29807adb609c4e3e4da328eb /sql/ha_isam.cc | |
parent | 62f9d3c201f8e8673041a365378f953107dd783e (diff) | |
parent | f015cbdc7e3427cf0f77012c4ce89f3cf8d5dd5f (diff) | |
download | mariadb-git-40c146f6a22e7397d9e5d1880b29f2c88fb39eda.tar.gz |
merge
sql/mysqld.cc:
Auto merged
sql/sql_delete.cc:
Auto merged
sql/sql_parse.cc:
Auto merged
Diffstat (limited to 'sql/ha_isam.cc')
-rw-r--r-- | sql/ha_isam.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sql/ha_isam.cc b/sql/ha_isam.cc index a96f42c202f..4b8c40f8fe6 100644 --- a/sql/ha_isam.cc +++ b/sql/ha_isam.cc @@ -109,6 +109,15 @@ int ha_isam::index_read_idx(byte * buf, uint index, const byte * key, return !error ? 0 : my_errno ? my_errno : -1; } +int ha_isam::index_read_last(byte * buf, const byte * key, uint key_len) +{ + statistic_increment(ha_read_key_count,&LOCK_status); + int error=nisam_rkey(file, buf, active_index, key, key_len, + HA_READ_PREFIX_LAST); + table->status=error ? STATUS_NOT_FOUND: 0; + return !error ? 0 : my_errno ? my_errno : -1; +} + int ha_isam::index_next(byte * buf) { statistic_increment(ha_read_next_count,&LOCK_status); |