Uploaded image for project: 'MariaDB ColumnStore'
  1. MariaDB ColumnStore
  2. MCOL-679

Crash on prepared statement when no parameters bound

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.0.8, 1.1.0
    • Fix Version/s: 1.0.9, 1.1.0
    • Component/s: None
    • Labels:
      None
    • Sprint:
      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)
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              dleeyh Daniel Lee
              Reporter:
              LinuxJedi Andrew Hutchings (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.