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

Trying to delete language causes ISE

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 2023-08-07
    • None
    • Editing interface
    • None

      Trying to delete a language causes the following ISE:

      DBD::Pg::st execute failed: ERROR: column "language" does not exist LINE 1: ...RE language = '15' UNION SELECT 1 FROM work WHERE language =... ^ [for Statement "SELECT 1 FROM release WHERE language = ? UNION SELECT 1 FROM work WHERE language = ? UNION SELECT 1 FROM editor_language WHERE language = ? LIMIT 1" with ParamValues: 1='15', 2='15', 3='15'] at lib/MusicBrainz/Server/Connector.pm line 50 Sql::select_single_value(?, ?, ?, ?, ?) called at lib/MusicBrainz/Server/Data/Language.pm line 70

       

      Seems this was never amended when works got multiple languages, but we never actually tried to remove a language so this was hidden for like 8 years or whatever.

            reosarevok Nicolás Tamargo
            reosarevok Nicolás Tamargo
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                Version Package
                2023-08-07