61
61
int ha_blackhole::open(const char *name, int mode __attribute__((__unused__)),
62
62
uint test_if_locked __attribute__((__unused__)))
64
DBUG_ENTER("ha_blackhole::open");
66
64
if (!(share= get_share(name)))
67
DBUG_RETURN(HA_ERR_OUT_OF_MEM);
65
return(HA_ERR_OUT_OF_MEM);
69
67
thr_lock_data_init(&share->lock, &lock, NULL);
73
71
int ha_blackhole::close(void)
75
DBUG_ENTER("ha_blackhole::close");
80
77
int ha_blackhole::create(const char *name __attribute__((__unused__)),
81
78
TABLE *table_arg __attribute__((__unused__)),
82
79
HA_CREATE_INFO *create_info __attribute__((__unused__)))
84
DBUG_ENTER("ha_blackhole::create");
88
84
const char *ha_blackhole::index_type(uint key_number)
90
DBUG_ENTER("ha_blackhole::index_type");
91
DBUG_RETURN((table_share->key_info[key_number].flags & HA_FULLTEXT) ?
86
return((table_share->key_info[key_number].flags & HA_FULLTEXT) ?
93
88
(table_share->key_info[key_number].flags & HA_SPATIAL) ?
99
94
int ha_blackhole::write_row(uchar * buf __attribute__((__unused__)))
101
DBUG_ENTER("ha_blackhole::write_row");
102
DBUG_RETURN(table->next_number_field ? update_auto_increment() : 0);
96
return(table->next_number_field ? update_auto_increment() : 0);
105
99
int ha_blackhole::rnd_init(bool scan __attribute__((__unused__)))
107
DBUG_ENTER("ha_blackhole::rnd_init");
112
105
int ha_blackhole::rnd_next(uchar *buf __attribute__((__unused__)))
114
DBUG_ENTER("ha_blackhole::rnd_next");
115
DBUG_RETURN(HA_ERR_END_OF_FILE);
107
return(HA_ERR_END_OF_FILE);
119
111
int ha_blackhole::rnd_pos(uchar * buf __attribute__((__unused__)),
120
112
uchar *pos __attribute__((__unused__)))
122
DBUG_ENTER("ha_blackhole::rnd_pos");
128
119
void ha_blackhole::position(const uchar *record __attribute__((__unused__)))
130
DBUG_ENTER("ha_blackhole::position");
136
126
int ha_blackhole::info(uint flag)
138
DBUG_ENTER("ha_blackhole::info");
140
128
bzero((char*) &stats, sizeof(stats));
141
129
if (flag & HA_STATUS_AUTO)
142
130
stats.auto_increment_value= 1;
146
134
int ha_blackhole::external_lock(THD *thd __attribute__((__unused__)),
147
135
int lock_type __attribute__((__unused__)))
149
DBUG_ENTER("ha_blackhole::external_lock");
193
179
key_part_map keypart_map __attribute__((__unused__)),
194
180
enum ha_rkey_function find_flag __attribute__((__unused__)))
196
DBUG_ENTER("ha_blackhole::index_read");
197
DBUG_RETURN(HA_ERR_END_OF_FILE);
182
return(HA_ERR_END_OF_FILE);
204
189
key_part_map keypart_map __attribute__((__unused__)),
205
190
enum ha_rkey_function find_flag __attribute__((__unused__)))
207
DBUG_ENTER("ha_blackhole::index_read_idx");
208
DBUG_RETURN(HA_ERR_END_OF_FILE);
192
return(HA_ERR_END_OF_FILE);
213
197
const uchar * key __attribute__((__unused__)),
214
198
key_part_map keypart_map __attribute__((__unused__)))
216
DBUG_ENTER("ha_blackhole::index_read_last");
217
DBUG_RETURN(HA_ERR_END_OF_FILE);
200
return(HA_ERR_END_OF_FILE);
221
204
int ha_blackhole::index_next(uchar * buf __attribute__((__unused__)))
223
DBUG_ENTER("ha_blackhole::index_next");
224
DBUG_RETURN(HA_ERR_END_OF_FILE);
206
return(HA_ERR_END_OF_FILE);
228
210
int ha_blackhole::index_prev(uchar * buf __attribute__((__unused__)))
230
DBUG_ENTER("ha_blackhole::index_prev");
231
DBUG_RETURN(HA_ERR_END_OF_FILE);
212
return(HA_ERR_END_OF_FILE);
235
216
int ha_blackhole::index_first(uchar * buf __attribute__((__unused__)))
237
DBUG_ENTER("ha_blackhole::index_first");
238
DBUG_RETURN(HA_ERR_END_OF_FILE);
218
return(HA_ERR_END_OF_FILE);
242
222
int ha_blackhole::index_last(uchar * buf __attribute__((__unused__)))
244
DBUG_ENTER("ha_blackhole::index_last");
245
DBUG_RETURN(HA_ERR_END_OF_FILE);
224
return(HA_ERR_END_OF_FILE);