[MDEV-17672] main.analyze_stmt fails in bb-10.4-ps branch in --ps Created: 2018-11-12  Updated: 2019-03-12  Resolved: 2019-03-12

Status: Closed
Project: MariaDB Server
Component/s: Prepared Statements
Affects Version/s: 10.4
Fix Version/s: 10.2.23, 10.1.39, 10.3.14, 10.4.4

Type: Bug Priority: Major
Reporter: Sergei Golubchik Assignee: Sergei Golubchik
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
PartOf
is part of MDEV-15945 --ps-protocol does not test some queries Closed

 Description   

build bb-10.4-ps branch, run ./mtr --ps main.analyze_stmt it'll fail on

analyze select * from t1 into @var;

because THD::prepare_explain_fields() does result->prepare(*field_list, NULL); and result is select_dumpvar expecting only one field in the result set, but field_list comes from make_explain_field_list().

please push the fix into bb-10.4-ps


Generated at Thu Feb 08 08:38:14 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.