Details
-
Task
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
None
-
10.0.20, 10.0.22, 10.1.9-2, 10.0.23, 10.0.24, 10.0.28, 10.0.29
Description
Could we have a server variable to log warnings into the SQL_ERROR_LOG?
It would be really useful, while debugging an application.
I know I could change the SQL_MODE to convert many warnings into errors, but 1) not all warnings, 2) some queries would not work, which is not what I want.
Attachments
Issue Links
Activity
Field | Original Value | New Value |
---|---|---|
Description |
Could we have a server variables to log warnings in SQL_ERROR_LOG? It would be really useful, while debugging an application. I know I could change the SQL_MODE to convert many warnings into errors, but 1) not all warnings, 2) some queries would not work, which is not what I want. |
Could we have a server variable to log warnings in SQL_ERROR_LOG? It would be really useful, while debugging an application. I know I could change the SQL_MODE to convert many warnings into errors, but 1) not all warnings, 2) some queries would not work, which is not what I want. |
Description |
Could we have a server variable to log warnings in SQL_ERROR_LOG? It would be really useful, while debugging an application. I know I could change the SQL_MODE to convert many warnings into errors, but 1) not all warnings, 2) some queries would not work, which is not what I want. |
Could we have a server variable to log warnings into the SQL_ERROR_LOG? It would be really useful, while debugging an application. I know I could change the SQL_MODE to convert many warnings into errors, but 1) not all warnings, 2) some queries would not work, which is not what I want. |
Fix Version/s | 10.0 [ 16000 ] |
Assignee | Sergei Golubchik [ serg ] |
Assignee | Sergei Golubchik [ serg ] | Alexey Botchkov [ holyfoot ] |
Workflow | MariaDB v2 [ 59087 ] | MariaDB v3 [ 64651 ] |
Sprint | 10.0.20 [ 5 ] |
Sprint | 10.0.20 [ 5 ] | 10.0.20, 10.1.6-1 [ 5, 6 ] |
Rank | Ranked higher |
Sprint | 10.0.20, 10.1.6-1 [ 5, 6 ] | 10.0.20 [ 5 ] |
Sprint | 10.0.20 [ 5 ] | 10.0.20, 10.0.22 [ 5, 17 ] |
Rank | Ranked lower |
Sprint | 10.0.20, 10.0.22 [ 5, 17 ] | 10.0.20, 10.0.22, 10.1.9 [ 5, 17, 18 ] |
Rank | Ranked higher |
Sprint | 10.0.20, 10.0.22, 10.1.9-1 [ 5, 17, 18 ] | 10.0.20, 10.0.22, 10.1.9-2 [ 5, 17, 19 ] |
Rank | Ranked lower |
Sprint | 10.0.20, 10.0.22, 10.1.9-2 [ 5, 17, 19 ] | 10.0.20, 10.0.22, 10.1.9-2, 10.1.9-3 [ 5, 17, 19, 20 ] |
Rank | Ranked higher |
Sprint | 10.0.20, 10.0.22, 10.1.9-2, 10.1.9-3 [ 5, 17, 19, 20 ] | 10.0.20, 10.0.22, 10.1.9-2 [ 5, 17, 19 ] |
Rank | Ranked lower |
Sprint | 10.0.20, 10.0.22, 10.1.9-2 [ 5, 17, 19 ] | 10.0.20, 10.0.22, 10.1.9-2, 10.0.23-1 [ 5, 17, 19, 23 ] |
Rank | Ranked lower |
Rank | Ranked higher |
Sprint | 10.0.20, 10.0.22, 10.1.9-2, 10.0.23 [ 5, 17, 19, 23 ] | 10.0.20, 10.0.22, 10.1.9-2, 10.0.23, 10.0.24-0 [ 5, 17, 19, 23, 35 ] |
Rank | Ranked higher |
Sprint | 10.0.20, 10.0.22, 10.1.9-2, 10.0.23, 10.0.24 [ 5, 17, 19, 23, 35 ] | 10.0.20, 10.0.22, 10.1.9-2, 10.0.23, 10.0.24, 10.0.28 [ 5, 17, 19, 23, 35, 107 ] |
Rank | Ranked lower |
Sprint | 10.0.20, 10.0.22, 10.1.9-2, 10.0.23, 10.0.24, 10.0.28 [ 5, 17, 19, 23, 35, 107 ] | 10.0.20, 10.0.22, 10.1.9-2, 10.0.23, 10.0.24, 10.0.28, 10.0.29 [ 5, 17, 19, 23, 35, 107, 128 ] |
Rank | Ranked higher |
Workflow | MariaDB v3 [ 64651 ] | MariaDB v4 [ 130298 ] |
Fix Version/s | 10.0 [ 16000 ] |
Assignee | Alexey Botchkov [ holyfoot ] | Michael Widenius [ monty ] |
Fix Version/s | 10.11 [ 27614 ] |
Status | Open [ 1 ] | In Progress [ 3 ] |
issue.field.resolutiondate | 2023-05-24 12:01:53.0 | 2023-05-24 12:01:53.645 |
Fix Version/s | 10.11.4 [ 28918 ] | |
Fix Version/s | 10.11 [ 27614 ] | |
Resolution | Fixed [ 1 ] | |
Status | In Progress [ 3 ] | Closed [ 6 ] |
Fix Version/s | 10.11.5 [ 29019 ] | |
Fix Version/s | 10.11.4 [ 28918 ] |
Fix Version/s | 11.4.1 [ 29523 ] | |
Fix Version/s | 11.3.1 [ 29416 ] | |
Fix Version/s | 11.2.1 [ 29034 ] | |
Fix Version/s | 11.1.2 [ 28921 ] | |
Fix Version/s | 11.0.3 [ 28920 ] |
The Audit API doesn't support it, unfortunately. The server doesn't report warnings to an audit plugin — and mainly because the Audit API doesn't have a concept of a "warning". If I change the server to report warnings to an audit plugin, the plugin will have no way of distinguishing a warning from an error.
Extending the Audit API to support warnings is certainly possible, but it's not that easy. Both Oracle and we have already extended it, and differently. This is something we have to fix and at the same time I could add the support of warnings. But at the moment it's not exactly clear how to do that…