summaryrefslogtreecommitdiff
path: root/include/my_base.h
diff options
context:
space:
mode:
authorunknown <monty@hundin.mysql.fi>2002-01-05 22:51:42 +0200
committerunknown <monty@hundin.mysql.fi>2002-01-05 22:51:42 +0200
commite9b750d1a6a131b60453c8dd4efef9d572bae476 (patch)
treeaee8644482b4b6ee28e2b60a28829fa32f99a2b0 /include/my_base.h
parentf06d80f679aad1f6ddb79d26c36cd574de85bc24 (diff)
downloadmariadb-git-e9b750d1a6a131b60453c8dd4efef9d572bae476.tar.gz
Fix for FLUSH QUERY CACHE
Fix for new bug in CREATE TABLE when sorting keys. Docs/manual.texi: Added FOUND_ROWS() section. include/my_base.h: Spatial index include/myisam.h: Spatial index include/mysql_com.h: Spatial index myisam/ft_dump.c: Remove warnings. mysys/hash.c: Fix for SUNPRO_C (Sun's Fortre compiler) sql/sql_cache.cc: Fix for FLUSH QUERY CACHE. sql/sql_cache.h: Fix for FLUSH QUERY CACHE. sql/sql_table.cc: Fix for new bug when sorting keys.
Diffstat (limited to 'include/my_base.h')
-rw-r--r--include/my_base.h22
1 files changed, 21 insertions, 1 deletions
diff --git a/include/my_base.h b/include/my_base.h
index 89d58bb3d51..dc88e248469 100644
--- a/include/my_base.h
+++ b/include/my_base.h
@@ -56,7 +56,19 @@ enum ha_rkey_function {
HA_READ_AFTER_KEY, /* Find next rec. after key-record */
HA_READ_BEFORE_KEY, /* Find next rec. before key-record */
HA_READ_PREFIX, /* Key which as same prefix */
- HA_READ_PREFIX_LAST /* Last key with the same prefix */
+ HA_READ_PREFIX_LAST, /* Last key with the same prefix */
+ HA_READ_MBR_CONTAIN,
+ HA_READ_MBR_INTERSECT,
+ HA_READ_MBR_WITHIN,
+ HA_READ_MBR_DISJOINT,
+ HA_READ_MBR_EQUAL
+};
+
+ /* Key algorithm types */
+
+enum ha_key_alg {
+ HA_KEY_ALG_BTREE=0, /* B-tree, default one */
+ HA_KEY_ALG_RTREE=1 /* R-tree, for spatial searches */
};
/* The following is parameter to ha_extra() */
@@ -136,6 +148,8 @@ enum ha_base_keytype {
#define HA_BINARY_PACK_KEY 32 /* Packing of all keys to prev key */
#define HA_FULLTEXT 128 /* SerG: for full-text search */
#define HA_UNIQUE_CHECK 256 /* Check the key for uniqueness */
+#define HA_SPATIAL 1024 /* Alex Barkov: for spatial search */
+
/* Automatic bits in key-flag */
@@ -239,6 +253,12 @@ enum ha_base_keytype {
#define SEARCH_UPDATE 64
#define SEARCH_PREFIX 128
#define SEARCH_LAST 256
+#define MBR_CONTAIN 512
+#define MBR_INTERSECT 1024
+#define MBR_WITHIN 2048
+#define MBR_DISJOINT 4096
+#define MBR_EQUAL 8192
+#define MBR_DATA 16384
/* bits in opt_flag */
#define QUICK_USED 1