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

syntax error message improvement for brevity and clarity

    XMLWordPrintable

Details

    • Task
    • Status: Open (View Workflow)
    • Minor
    • Resolution: Unresolved
    • None
    • Parser
    • None

    Description

      The SQL syntax error message client receives is a bit verbose, as the 2 examples below demonstrates:

      MariaDB [(none)]> select * 
          -> fromm
          -> users;
      ERROR 1064 (42000): 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 'fromm
      users' at line 2
      

      It probably could be made more concise with something like this:

      MariaDB [(none)]> select * 
          -> fromm
          -> users;
      ERROR 1064 (42000): syntax error; check https://mariadb.com/kb/en/sql-statements/ for the right syntax to use near 'fromm
      users' at line 2
      

      Relevant PR and bug reports:
      https://github.com/MariaDB/server/pull/1992
      https://bugs.mysql.com/bug.php?id=28466

      Attachments

        Activity

          People

            Unassigned Unassigned
            haidong Haidong Ji
            Votes:
            0 Vote for this issue
            Watchers:
            3 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.