Uploaded image for project: 'MariaDB MaxScale'
  1. MariaDB MaxScale
  2. MXS-4481

Attempting to create a table with the name "DUAL" crashes MaxScale

    XMLWordPrintable

Details

    Description

      A statement like

      create table DUAL (f int);
      

      crashes MaxScale. The reason is that DUAL is a "magic" table that can be used when a table is not needed, e.g. select 1 from dual.

      The create statement would fail like

      ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'DUAL (f int)' at line 1
      

      when executed directly against the server, so the statement is invalid anyway. But MaxScale must obviously not crash.

      Attachments

        Issue Links

          Activity

            People

              johan.wikman Johan Wikman
              johan.wikman Johan Wikman
              Votes:
              0 Vote for this issue
              Watchers:
              1 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.