Uploaded image for project: 'MusicBrainz Server'
  1. MusicBrainz Server
  2. MBS-6661

work_attribute check is wrong

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 2013-11-11
    • None
    • None
    • None

      The work_attribute table has the following in CreateTables:

      -- Either it has a value from the allowed list, or is free text
      CHECK ( work_attribute_type_allowed_value IS NULL OR work_attribute_text IS NULL )
      

      However, that check does not achieve what the comment asks for (because it's possible for both to be null).

            acid2 Oliver Charles
            acid2 Oliver Charles
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                Version Package
                2013-11-11