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)))
84
const char *ha_blackhole::index_type(uint key_number)
84
const char *ha_blackhole::index_type(uint key_number __attribute__((unused)))
86
return((table_share->key_info[key_number].flags & HA_FULLTEXT) ?
88
(table_share->key_info[key_number].flags & HA_SPATIAL) ?
90
(table_share->key_info[key_number].algorithm ==
91
HA_KEY_ALG_RTREE) ? "RTREE" : "BTREE");
94
int ha_blackhole::write_row(uchar * buf __attribute__((__unused__)))
89
int ha_blackhole::write_row(uchar * buf __attribute__((unused)))
96
91
return(table->next_number_field ? update_auto_increment() : 0);
99
int ha_blackhole::rnd_init(bool scan __attribute__((__unused__)))
94
int ha_blackhole::rnd_init(bool scan __attribute__((unused)))
105
int ha_blackhole::rnd_next(uchar *buf __attribute__((__unused__)))
100
int ha_blackhole::rnd_next(uchar *buf __attribute__((unused)))
107
102
return(HA_ERR_END_OF_FILE);
111
int ha_blackhole::rnd_pos(uchar * buf __attribute__((__unused__)),
112
uchar *pos __attribute__((__unused__)))
106
int ha_blackhole::rnd_pos(uchar * buf __attribute__((unused)),
107
uchar *pos __attribute__((unused)))
119
void ha_blackhole::position(const uchar *record __attribute__((__unused__)))
114
void ha_blackhole::position(const uchar *record __attribute__((unused)))
126
121
int ha_blackhole::info(uint flag)
128
bzero((char*) &stats, sizeof(stats));
123
memset((char*) &stats, 0, sizeof(stats));
129
124
if (flag & HA_STATUS_AUTO)
130
125
stats.auto_increment_value= 1;
134
int ha_blackhole::external_lock(THD *thd __attribute__((__unused__)),
135
int lock_type __attribute__((__unused__)))
129
int ha_blackhole::external_lock(THD *thd __attribute__((unused)),
130
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__)))
172
int ha_blackhole::index_read_map(uchar * buf __attribute__((unused)),
173
const uchar * key __attribute__((unused)),
174
key_part_map keypart_map __attribute__((unused)),
175
enum ha_rkey_function find_flag __attribute__((unused)))
177
return(HA_ERR_END_OF_FILE);
181
int ha_blackhole::index_read_idx_map(uchar * buf __attribute__((unused)),
182
uint idx __attribute__((unused)),
183
const uchar * key __attribute__((unused)),
184
key_part_map keypart_map __attribute__((unused)),
185
enum ha_rkey_function find_flag __attribute__((unused)))
187
return(HA_ERR_END_OF_FILE);
191
int ha_blackhole::index_read_last_map(uchar * buf __attribute__((unused)),
192
const uchar * key __attribute__((unused)),
193
key_part_map keypart_map __attribute__((unused)))
195
return(HA_ERR_END_OF_FILE);
199
int ha_blackhole::index_next(uchar * buf __attribute__((unused)))
201
return(HA_ERR_END_OF_FILE);
205
int ha_blackhole::index_prev(uchar * buf __attribute__((unused)))
207
return(HA_ERR_END_OF_FILE);
211
int ha_blackhole::index_first(uchar * buf __attribute__((unused)))
213
return(HA_ERR_END_OF_FILE);
217
int ha_blackhole::index_last(uchar * buf __attribute__((unused)))
224
219
return(HA_ERR_END_OF_FILE);