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

Error Message not displayed correctly in some clients

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 10.2
    • Fix Version/s: N/A
    • Component/s: Scripts & Clients
    • Labels:
      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

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

              Dates

              Created:
              Updated:
              Resolved: