Uploaded image for project: 'MariaDB MaxScale'
  1. MariaDB MaxScale
  2. MXS-2621

Incorrect SQL if lower_case_table_names is used.

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 2.3.10
    • Fix Version/s: 2.3.11
    • Component/s: mysqlauth
    • Labels:
      None

      Description

      If lower_case_table_names is specified, the used SQL will be incorrect:

      dbusers.c:
      ...
          " AND (anydb = '1' OR LOWER('%s') IN ('', 'information_schema') OR LOWER('%s') LIKE LOWER(db)"
          " LIMIT 1";
      

      There's a missing ) after LOWER(db).

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                johan.wikman Johan Wikman
                Reporter:
                johan.wikman Johan Wikman
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: