-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MDEV-15729 Server crashes in Field::make_field upon HANDLER READ exec…
…uted with PS protocol update table->pos_in_table_list during prepare, just like it's done in normal execution. otherwise it'll be a dangling pointer
- Loading branch information
Showing
3 changed files
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
create table t1 (i int); | ||
handler test.t1 open handler_a; | ||
flush status; | ||
handler handler_a read first; | ||
i | ||
show status like 'Com_stmt_prepare%'; | ||
Variable_name Value | ||
Com_stmt_prepare OK | ||
drop table t1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# | ||
# 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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters