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

--ps-protocol does not test some queries

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Stalled (View Workflow)
    • Priority: Critical
    • Resolution: Unresolved
    • Affects Version/s: 5.5, 10.0, 10.1, 10.2, 10.3
    • Fix Version/s: 10.1, 10.2, 10.3, 10.4
    • Component/s: Tests
    • Labels:
      None

      Description

      --ps-protocol do not test:
      EXPLAIN
      ANALYSE
      CALL
      and so on

      List of what it test is here:

       const char *ps_re_str =
          "^("
          "[[:space:]]*REPLACE[[:space:]]|"
          "[[:space:]]*INSERT[[:space:]]|"
          "[[:space:]]*UPDATE[[:space:]]|"
          "[[:space:]]*DELETE[[:space:]]|"
          "[[:space:]]*SELECT[[:space:]]|"
          "[[:space:]]*CREATE[[:space:]]+TABLE[[:space:]]|"
          "[[:space:]]*DO[[:space:]]|"
          "[[:space:]]*SET[[:space:]]+OPTION[[:space:]]|"
          "[[:space:]]*DELETE[[:space:]]+MULTI[[:space:]]|"
          "[[:space:]]*UPDATE[[:space:]]+MULTI[[:space:]]|"
          "[[:space:]]*INSERT[[:space:]]+SELECT[[:space:]])";
      

      May be it has sense prohibit queries which has no sens, but allow all.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                serg Sergei Golubchik
                Reporter:
                sanja Oleksandr Byelkin
              • Votes:
                1 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated: