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

Crash on prepared statement when no parameters bound

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 1.0.8, 1.1.0
    • 1.0.9, 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)
      

      Attachments

        Issue Links

          Activity

            People

              dleeyh Daniel Lee (Inactive)
              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.