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

Check constraint parser incorrectly indicates syntax error

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Duplicate
    • 10.5.8
    • N/A
    • N/A
    • None

    Description

      create table tbl (
        leaf int,
        internal int
        , constraint mutex_internal_or_leaf check ((internal is null ) <> (leaf is null))
        )
      

      Throws syntax error

      SQL Error [1064] [42000]: (conn=28) You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '<> (`leaf` is null)' 
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              noel.diaz Noel Diaz
              Votes:
              0 Vote for this issue
              Watchers:
              2 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.