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

INSERT...SELECT in a prepared statement falls back to vtable disable

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Not a Bug
    • 1.0.9, 1.1.0
    • Icebox
    • MariaDB Server
    • 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;
      

      Attachments

        Activity

          People

            LinuxJedi Andrew Hutchings (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.