Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-7519

debian / ubuntu packaging creation of plugin table (if not exists)

Details

    Description

      Debian has CREATE TABLE IF NOT EXISTS plugin and Ubuntu only has CREATE TABLE plugin.

      Thinking Ubuntu should have IF NOT EXISTS too. It might fail otherwise.

      --- debian/dist/Ubuntu/mariadb-server-10.0.postinst     2014-05-25 15:03:40.306600000 +1000
      +++ debian/dist/Debian/mariadb-server-10.0.postinst     2014-05-25 15:03:40.306600000 +1000
      @@ -213,7 +212,7 @@
           # admin might already have chosen to remove one or more plugins. Newlines are necessary.
           install_plugins=`/bin/echo -e \
               "USE mysql;\n" \
      -        "CREATE TABLE plugin (name char(64) COLLATE utf8_bin NOT NULL DEFAULT '', " \
      +        "CREATE TABLE IF NOT EXISTS plugin (name char(64) COLLATE utf8_bin NOT NULL DEFAULT '', " \
               "  dl char(128) COLLATE utf8_bin NOT NULL DEFAULT '', " \
               "  PRIMARY KEY (name)) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='MySQL plugins';" `
       

      Attachments

        Activity

          danblack Daniel Black created issue -
          elenst Elena Stepanova made changes -
          Field Original Value New Value
          Fix Version/s 10.0.17 [ 18300 ]
          Fix Version/s 5.5.42 [ 18102 ]
          Affects Version/s 5.5 [ 15800 ]
          Assignee Elena Stepanova [ elenst ]
          Labels verified
          elenst Elena Stepanova made changes -
          Resolution Fixed [ 1 ]
          Status Open [ 1 ] Closed [ 6 ]
          ratzpo Rasmus Johansson (Inactive) made changes -
          Workflow MariaDB v2 [ 59349 ] MariaDB v3 [ 66151 ]
          serg Sergei Golubchik made changes -
          Workflow MariaDB v3 [ 66151 ] MariaDB v4 [ 148757 ]

          People

            elenst Elena Stepanova
            danblack Daniel Black
            Votes:
            0 Vote for this issue
            Watchers:
            2 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.