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

        Issue Links

          Activity

            People

              ramesh Ramesh Sivaraman
              greenman Ian Gilfillan
              Votes:
              2 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0d
                  0d
                  Logged:
                  Time Spent - 1.5d
                  1.5d

                  Git Integration

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