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

REFERENCES syntax in CREATE TABLE

    XMLWordPrintable

    Details

      Description

      After all these years, sometimes I still see people who use the REFERENCES syntax to create foreign keys:

      col_name col_type REFERENCES tab_name (col_name)

      The problem is that they may think that a foreign key is created, until they realize that data is inconsistent.

      Please, consider producing a warning when this syntax is used. Or maybe support the syntax.

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            f_razzoli Federico Razzoli
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: