Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Not a Bug
-
1.0.9, 1.1.0
-
None
-
2017-14, 2017-15
Description
For the prepared statement section of vtable sql_parse we check for SQLCOM_SELECT but not SQLCOM_INSERT_SELECT. This means that prepared statements with INSERT...SELECT fall through to disable vtable.
Test:
create table tc1 (a int) engine=innodb;
|
insert into tc1 values (1),(2),(3);
|
create table tc2 (a int) engine=columnstore;
|
set @psql="insert into tc2 select * from tc1";
|
prepare run_sql from @psql;
|
execute run_sql;
|