summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authoringo@mysql.com <>2004-12-23 21:45:10 +0100
committeringo@mysql.com <>2004-12-23 21:45:10 +0100
commit60e35755ef1e5ac3318936a324120c0c3f4c788e (patch)
tree2278239c23c9cfa8abc2cfb833b598df01227ee8 /include
parentbf40ab8cb1c129a2da1ae92f1c5ff2fd296ad962 (diff)
downloadmariadb-git-60e35755ef1e5ac3318936a324120c0c3f4c788e.tar.gz
WL#2126 - Multi_read_range.
Added the required structures and functions for handing over multiple key ranges to the table handler.
Diffstat (limited to 'include')
-rw-r--r--include/my_base.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/include/my_base.h b/include/my_base.h
index 4d043cf6b5b..d219cdd4289 100644
--- a/include/my_base.h
+++ b/include/my_base.h
@@ -370,6 +370,15 @@ enum data_file_type {
/* For key ranges */
+#define NO_MIN_RANGE 1
+#define NO_MAX_RANGE 2
+#define NEAR_MIN 4
+#define NEAR_MAX 8
+#define UNIQUE_RANGE 16
+#define EQ_RANGE 32
+#define NULL_RANGE 64
+#define GEOM_FLAG 128
+
typedef struct st_key_range
{
const byte *key;
@@ -377,6 +386,14 @@ typedef struct st_key_range
enum ha_rkey_function flag;
} key_range;
+typedef struct st_key_multi_range
+{
+ key_range start_key;
+ key_range end_key;
+ char *ptr; /* Free to use by caller (ptr to row etc) */
+ uint range_flag; /* key range flags see above */
+} KEY_MULTI_RANGE;
+
/* For number of records */
#ifdef BIG_TABLES