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

table attributes with sysvar as a default value

Details

    • Task
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 10.0.2
    • None

    Description

      I've had the need for this few times already (e.g. Aria engine does that with the page checksum).
      It's a table attribute where the default value is not fixed, but set via a server variable. Like in

      SET SESSION opt_val=17;
      CREATE TABLE t1 ( .... ) opt_val=DEFAULT;
      CREATE TABLE t2 ( .... );
      CREATE TABLE t3 ( .... ) opt_val=10;

      for tables t1 and t2 the value of opt_val will be 17.

      Note that the value of opt_val is remembered when a table is created, later changes of the session variable don't affect the table.

      Attachments

        Activity

          serg Sergei Golubchik created issue -
          serg Sergei Golubchik made changes -
          Field Original Value New Value
          serg Sergei Golubchik made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          serg Sergei Golubchik made changes -
          Status In Progress [ 3 ] Open [ 1 ]
          serg Sergei Golubchik made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          serg Sergei Golubchik made changes -
          Priority Minor [ 4 ] Major [ 3 ]

          pushed in 10.0-base

          serg Sergei Golubchik added a comment - pushed in 10.0-base
          serg Sergei Golubchik made changes -
          Resolution Fixed [ 1 ]
          Status In Progress [ 3 ] Closed [ 6 ]
          serg Sergei Golubchik made changes -
          Workflow defaullt [ 25798 ] MariaDB v2 [ 46531 ]
          ratzpo Rasmus Johansson (Inactive) made changes -
          Workflow MariaDB v2 [ 46531 ] MariaDB v3 [ 67237 ]
          serg Sergei Golubchik made changes -
          Workflow MariaDB v3 [ 67237 ] MariaDB v4 [ 132053 ]

          People

            serg Sergei Golubchik
            serg Sergei Golubchik
            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.