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

cannot specify a name for a column check constraint

    XMLWordPrintable

Details

    • Bug
    • Status: In Review (View Workflow)
    • Minor
    • Resolution: Unresolved
    • 10.2, 10.3, 10.4, 10.5
    • 10.4, 10.5
    • None
    • None

    Description

      the standard syntax is

      <column constraint definition> ::=
      [ <constraint name definition> ] <column constraint> [ <constraint characteristics> ]
      <column constraint> ::=
      ...
      | <check constraint definition>
       
      <constraint name definition> ::=
      CONSTRAINT <constraint name>
       
      <check constraint definition> ::=
      CHECK <left paren> <search condition> <right paren>
      

      That is

      create table t1 (a int constraint foo check (a > 5));
      

      should be a valid statement. But it is not.

      Attachments

        Issue Links

          Activity

            People

              serg Sergei Golubchik
              serg Sergei Golubchik
              Votes:
              0 Vote for this issue
              Watchers:
              4 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.