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

Implement optional lengths for string types

    XMLWordPrintable

Details

    Description

      MariaDB currently requires string lengths to be specified, for example:

      CREATE TABLE t1 (
          a VARCHAR(10),
          b VARCHAR(20)
      );
      

      The 2023 SQL standard no longer requires this, so:

      CREATE TABLE t1 (
          a VARCHAR,
          b VARCHAR
      );
      

      would be valid code. The limit is then left to the implementation to define, for example in PostgreSQL, characters without lengths become character(1), while character varying without lengths accept strings of any size.

      Attachments

        Activity

          People

            Unassigned Unassigned
            greenman Ian Gilfillan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.