summaryrefslogtreecommitdiff
path: root/sql/ha_blackhole.h
diff options
context:
space:
mode:
authorunknown <brian@zim.(none)>2005-03-24 16:07:56 -0800
committerunknown <brian@zim.(none)>2005-03-24 16:07:56 -0800
commit5434defee5c15b729ae4abe8566dcf694bd33059 (patch)
tree85dd501587537f24095503ccdd52448b183f83c1 /sql/ha_blackhole.h
parent8a99997d6061ec3e2d75616422eac413868ceada (diff)
downloadmariadb-git-5434defee5c15b729ae4abe8566dcf694bd33059.tar.gz
Collection of changes per Bar and Serg.
acinclude.m4: Change in message mysql-test/r/blackhole.result: Lowered the number of inserts. mysql-test/t/blackhole.test: Lowered the number of inserts. sql/ha_blackhole.cc: Added indexes per Serg, correction of indention, added asserts per Serg. sql/ha_blackhole.h: Indention fix, added methods for index...
Diffstat (limited to 'sql/ha_blackhole.h')
-rw-r--r--sql/ha_blackhole.h17
1 files changed, 13 insertions, 4 deletions
diff --git a/sql/ha_blackhole.h b/sql/ha_blackhole.h
index 538cdd07bde..b6f924e94b9 100644
--- a/sql/ha_blackhole.h
+++ b/sql/ha_blackhole.h
@@ -39,7 +39,7 @@ public:
/*
The name of the index type that will be used for display
don't implement this method unless you really have indexes
- */
+ */
const char *index_type(uint key_number);
const char **bas_ext() const;
ulong table_flags() const
@@ -68,12 +68,21 @@ public:
int rnd_init(bool scan);
int rnd_next(byte *buf);
int rnd_pos(byte * buf, byte *pos);
+ int index_read(byte * buf, const byte * key,
+ uint key_len, enum ha_rkey_function find_flag);
+ int index_read_idx(byte * buf, uint idx, const byte * key,
+ uint key_len, enum ha_rkey_function find_flag);
+ int index_read_last(byte * buf, const byte * key, uint key_len);
+ int index_next(byte * buf);
+ int index_prev(byte * buf);
+ int index_first(byte * buf);
+ int index_last(byte * buf);
void position(const byte *record);
void info(uint flag);
int external_lock(THD *thd, int lock_type);
int create(const char *name, TABLE *table_arg,
- HA_CREATE_INFO *create_info);
+ HA_CREATE_INFO *create_info);
THR_LOCK_DATA **store_lock(THD *thd,
- THR_LOCK_DATA **to,
- enum thr_lock_type lock_type);
+ THR_LOCK_DATA **to,
+ enum thr_lock_type lock_type);
};