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

Feature Request: could SQL_ERROR_LOG log comments?

    Details

    • Type: Task
    • Status: Closed
    • Priority: Trivial
    • Resolution: Incomplete
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      If i issue:

      MariaDB [(none)]> SELECT @@x; -- comment
      ERROR 1193 (HY000): Unknown system variable 'x'
      

      The log says:

      2013-07-09 15:51:17 root[root] @ localhost [127.0.0.1] ERROR 1193: Unknown system variable 'x' : SELECT @@x
      

      However, the entries would be more easy to search if comments were logged.

        Gliffy Diagrams

          Attachments

            Activity

            Hide
            serg Sergei Golubchik added a comment -

            That's not possible to do for your example, because mysql command line client strips comments before sending a query to the server. Try a client that doesn't, I believe you should see comments in the log.

            Show
            serg Sergei Golubchik added a comment - That's not possible to do for your example, because mysql command line client strips comments before sending a query to the server. Try a client that doesn't, I believe you should see comments in the log.
            Hide
            serg Sergei Golubchik added a comment -

            No feedback, I assume you've tested it and found that if comments aren't stripped by the client, they're logged correctly.

            I'm closing this issue, but feel free to reopen it if necessary.

            Show
            serg Sergei Golubchik added a comment - No feedback, I assume you've tested it and found that if comments aren't stripped by the client, they're logged correctly. I'm closing this issue, but feel free to reopen it if necessary.

              People

              • Assignee:
                Unassigned
                Reporter:
                f_razzoli Federico Razzoli
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Due:
                  Created:
                  Updated:
                  Resolved: