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

Better error message for "Unknown column xy in 'field list' (1056)"

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Major
    • Resolution: Unresolved
    • 10.4.12
    • None
    • Server
    • In "Unknown column xy in 'field list' (1056)", the available fields are communicated.

    Description

      I often get the Missing Columns error myself and always found it weird to not being able to ,,look into the mind" of MariaDB and see which columns MariaDB sees in the current context. Is it a typo? Did I use the thin base table instead of the enriched view? Did someone change the column name? All of these questions could be answered faster if one gets the known column names within the error message.

      The problem occurs since at least 10.4.12.

      I created patches to extend the error messages with the missing information as well as an SQL file for testing purposes with KI to give a starting point. The patches should be applicable via

      git apply
      

      Attachments

        Activity

          People

            gkodinov Georgi Kodinov
            Friedrich2 Friedrich Spee
            Votes:
            0 Vote for this issue
            Watchers:
            2 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.