58
58
return ha_blackhole_exts;
61
int ha_blackhole::open(const char *name, int mode __attribute__((__unused__)),
62
uint test_if_locked __attribute__((__unused__)))
61
int ha_blackhole::open(const char *name, int mode __attribute__((unused)),
62
uint test_if_locked __attribute__((unused)))
64
64
if (!(share= get_share(name)))
65
65
return(HA_ERR_OUT_OF_MEM);
77
int ha_blackhole::create(const char *name __attribute__((__unused__)),
78
TABLE *table_arg __attribute__((__unused__)),
79
HA_CREATE_INFO *create_info __attribute__((__unused__)))
77
int ha_blackhole::create(const char *name __attribute__((unused)),
78
TABLE *table_arg __attribute__((unused)),
79
HA_CREATE_INFO *create_info __attribute__((unused)))
91
91
HA_KEY_ALG_RTREE) ? "RTREE" : "BTREE");
94
int ha_blackhole::write_row(uchar * buf __attribute__((__unused__)))
94
int ha_blackhole::write_row(uchar * buf __attribute__((unused)))
96
96
return(table->next_number_field ? update_auto_increment() : 0);
99
int ha_blackhole::rnd_init(bool scan __attribute__((__unused__)))
99
int ha_blackhole::rnd_init(bool scan __attribute__((unused)))
105
int ha_blackhole::rnd_next(uchar *buf __attribute__((__unused__)))
105
int ha_blackhole::rnd_next(uchar *buf __attribute__((unused)))
107
107
return(HA_ERR_END_OF_FILE);
111
int ha_blackhole::rnd_pos(uchar * buf __attribute__((__unused__)),
112
uchar *pos __attribute__((__unused__)))
111
int ha_blackhole::rnd_pos(uchar * buf __attribute__((unused)),
112
uchar *pos __attribute__((unused)))
119
void ha_blackhole::position(const uchar *record __attribute__((__unused__)))
119
void ha_blackhole::position(const uchar *record __attribute__((unused)))
126
126
int ha_blackhole::info(uint flag)
128
bzero((char*) &stats, sizeof(stats));
128
memset((char*) &stats, 0, sizeof(stats));
129
129
if (flag & HA_STATUS_AUTO)
130
130
stats.auto_increment_value= 1;
134
int ha_blackhole::external_lock(THD *thd __attribute__((__unused__)),
135
int lock_type __attribute__((__unused__)))
134
int ha_blackhole::external_lock(THD *thd __attribute__((unused)),
135
int lock_type __attribute__((unused)))
177
int ha_blackhole::index_read_map(uchar * buf __attribute__((__unused__)),
178
const uchar * key __attribute__((__unused__)),
179
key_part_map keypart_map __attribute__((__unused__)),
180
enum ha_rkey_function find_flag __attribute__((__unused__)))
182
return(HA_ERR_END_OF_FILE);
186
int ha_blackhole::index_read_idx_map(uchar * buf __attribute__((__unused__)),
187
uint idx __attribute__((__unused__)),
188
const uchar * key __attribute__((__unused__)),
189
key_part_map keypart_map __attribute__((__unused__)),
190
enum ha_rkey_function find_flag __attribute__((__unused__)))
192
return(HA_ERR_END_OF_FILE);
196
int ha_blackhole::index_read_last_map(uchar * buf __attribute__((__unused__)),
197
const uchar * key __attribute__((__unused__)),
198
key_part_map keypart_map __attribute__((__unused__)))
200
return(HA_ERR_END_OF_FILE);
204
int ha_blackhole::index_next(uchar * buf __attribute__((__unused__)))
206
return(HA_ERR_END_OF_FILE);
210
int ha_blackhole::index_prev(uchar * buf __attribute__((__unused__)))
212
return(HA_ERR_END_OF_FILE);
216
int ha_blackhole::index_first(uchar * buf __attribute__((__unused__)))
218
return(HA_ERR_END_OF_FILE);
222
int ha_blackhole::index_last(uchar * buf __attribute__((__unused__)))
177
int ha_blackhole::index_read_map(uchar * buf __attribute__((unused)),
178
const uchar * key __attribute__((unused)),
179
key_part_map keypart_map __attribute__((unused)),
180
enum ha_rkey_function find_flag __attribute__((unused)))
182
return(HA_ERR_END_OF_FILE);
186
int ha_blackhole::index_read_idx_map(uchar * buf __attribute__((unused)),
187
uint idx __attribute__((unused)),
188
const uchar * key __attribute__((unused)),
189
key_part_map keypart_map __attribute__((unused)),
190
enum ha_rkey_function find_flag __attribute__((unused)))
192
return(HA_ERR_END_OF_FILE);
196
int ha_blackhole::index_read_last_map(uchar * buf __attribute__((unused)),
197
const uchar * key __attribute__((unused)),
198
key_part_map keypart_map __attribute__((unused)))
200
return(HA_ERR_END_OF_FILE);
204
int ha_blackhole::index_next(uchar * buf __attribute__((unused)))
206
return(HA_ERR_END_OF_FILE);
210
int ha_blackhole::index_prev(uchar * buf __attribute__((unused)))
212
return(HA_ERR_END_OF_FILE);
216
int ha_blackhole::index_first(uchar * buf __attribute__((unused)))
218
return(HA_ERR_END_OF_FILE);
222
int ha_blackhole::index_last(uchar * buf __attribute__((unused)))
224
224
return(HA_ERR_END_OF_FILE);