update table->pos_in_table_list during prepare, just like it's done in normal execution. otherwise it'll be a dangling pointer
12 lines
340 B
Plaintext
12 lines
340 B
Plaintext
#
|
|
# MDEV-15729 Server crashes in Field::make_field upon HANDLER READ executed with PS protocol
|
|
#
|
|
create table t1 (i int);
|
|
handler test.t1 open handler_a;
|
|
flush status;
|
|
handler handler_a read first;
|
|
# handler...read must be prepared in --ps-protocol mode
|
|
--replace_result $PS_PROTOCOL OK
|
|
show status like 'Com_stmt_prepare%';
|
|
drop table t1;
|