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

Error Message not displayed correctly in some clients

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Won't Fix
    • 10.2
    • N/A
    • Scripts & Clients
    • None

    Description

      Hello,

      When using a model with too many CTEs, I get the error

      Code: 4003 SQL State: HY000 — Too many WITH elements in WITH clause

      when doing an explain but the python client/driver (MySQLdb) I am using does not display it and it displayed an cryptic error (''error totally whack').

      A deeper source code analysis shows that the python code expects an error code to be below CR_MAX_ERROR which is defined by mariadb as ,

      ../server/include/errmsg.h:#define CR_MAX_ERROR 2999

      Did this number increase without being updated ? it is no longer used in mariadb-server but still by some clients (to my knowledge : mysqladmin and python)

      Regards,

      Antoine

      Attachments

        Activity

          People

            serg Sergei Golubchik
            AntoineC CARME Antoine
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.