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

Update INVISIBLE column documentation example to be consistent

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • None
    • N/A
    • Documentation
    • None

    Description

      In the invisible column documentation, the example of creating a view is not consistent with the example before.
      It should be updated to

      MariaDB [test]> desc v1;
      +-------+---------+------+-----+---------+-------+
      | Field | Type    | Null | Key | Default | Extra |
      +-------+---------+------+-----+---------+-------+
      | y     | int(11) | YES  |     | NULL    |       |
      | z     | int(11) | NO   |     | 4       |       |
      +-------+---------+------+-----+---------+-------+
      2 rows in set (0.001 sec)
      

      Also here I would add as a first example case of having only 1 column as invisible where error is generated, like

      MariaDB [test]> CREATE TABLE t (x INT INVISIBLE);
      ERROR 1113 (42000): A table must have at least 1 column
      

      Attachments

        Activity

          People

            greenman Ian Gilfillan
            anel Anel Husakovic
            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.