[MDEV-4772] Feature Request: could SQL_ERROR_LOG log comments? Created: 2013-07-09  Updated: 2013-09-29  Due: 2013-08-20  Resolved: 2013-09-29

Status: Closed
Project: MariaDB Server
Component/s: None
Fix Version/s: None

Type: Task Priority: Trivial
Reporter: Federico Razzoli Assignee: Unassigned
Resolution: Incomplete Votes: 0
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.



 Comments   
Comment by Sergei Golubchik [ 2013-07-16 ]

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.

Comment by Sergei Golubchik [ 2013-09-29 ]

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.

Generated at Thu Feb 08 06:59:02 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.