Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
1.0.8, 1.1.0
-
None
-
None
-
2017-9
Description
Found from logs in MCOL-676
When executing a prepared statement that contains question marks but no params we crash in sql_parse.cc:9825:
Item_param *param= *begin;
|
Because "begin" is NULL.
Example query:
create table vstats_country (did INT, country CHAR(2), reqs INT, tx INT, tpr BIGINT, updatetime BIGINT) engine=columnstore;
|
 |
INSERT INTO vstats_country (did,country,reqs,tx,tpr,updatetime) VALUES (26818, '??', 2, 1713996, 1062, 1492917900)
|