summaryrefslogtreecommitdiff
path: root/sql/handler.h
diff options
context:
space:
mode:
authorunknown <monty@hundin.mysql.fi>2002-01-30 16:07:11 +0200
committerunknown <monty@hundin.mysql.fi>2002-01-30 16:07:11 +0200
commit9369764f2226e0e8cb9724bcdac256f45330ba67 (patch)
tree00eb1852e1e55dce030aa0d5fc40f4491f4e8857 /sql/handler.h
parent9c5eec61e35e5a86a6ad703f5b77caa090db5cbb (diff)
downloadmariadb-git-9369764f2226e0e8cb9724bcdac256f45330ba67.tar.gz
Take into account that table scans may use indexes
Docs/manual.texi: Changelog
Diffstat (limited to 'sql/handler.h')
-rw-r--r--sql/handler.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/sql/handler.h b/sql/handler.h
index 0add543f12c..8d8dfeb8da4 100644
--- a/sql/handler.h
+++ b/sql/handler.h
@@ -42,16 +42,13 @@
#define HA_ADMIN_INVALID -5
/* Bits in bas_flag to show what database can do */
-
#define HA_READ_NEXT 1 /* Read next record with same key */
#define HA_READ_PREV 2 /* Read prev. record with same key */
#define HA_READ_ORDER 4 /* Read through record-keys in order */
#define HA_READ_RND_SAME 8 /* Read RND-record to KEY-record
(To update with RND-read) */
#define HA_KEYPOS_TO_RNDPOS 16 /* ha_info gives pos to record */
-#define HA_LASTKEY_ORDER 32 /* Next record gives next record
- according last record read (even
- if database is updated after read) */
+#define HA_TABLE_SCAN_ON_INDEX 32 /* No separate data/index file */
#define HA_REC_NOT_IN_SEQ 64 /* ha_info don't return recnumber;
It returns a position to ha_r_rnd */
#define HA_ONLY_WHOLE_INDEX 128 /* Can't use part key searches */
@@ -78,6 +75,13 @@
#define HA_CAN_FULLTEXT (HA_NO_PREFIX_CHAR_KEYS*2)
#define HA_CAN_SQL_HANDLER (HA_CAN_FULLTEXT*2)
+/* Old not used flags */
+/*
+ Next record gives next record according last record read (even
+ if database is updated after read)
+*/
+#define HA_LASTKEY_ORDER 0
+
/* Parameters for open() (in register form->filestat) */
/* HA_GET_INFO does an implicit HA_ABORT_IF_LOCKED */