From 457d0c21dde489e1dab0f954aa5cb72c061f97f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20M=C3=A4kel=C3=A4?= Date: Wed, 17 Oct 2018 11:01:39 +0300 Subject: [PATCH] Document error code and SQL state for blocked queries If the dbfwfilter blocks a query a specific error is returned. This was not documented and is needed to detect errors sent by the filter. --- Documentation/Filters/Database-Firewall-Filter.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/Filters/Database-Firewall-Filter.md b/Documentation/Filters/Database-Firewall-Filter.md index bb801bdc6..7c3401919 100644 --- a/Documentation/Filters/Database-Firewall-Filter.md +++ b/Documentation/Filters/Database-Firewall-Filter.md @@ -88,6 +88,9 @@ action=block rules=/home/user/blacklist-rules.txt ``` +If a query is blocked, the filter will return an error to the client with the +error number 1141 and an SQL state of HY000. + #### `log_match` Log all queries that match a rule. For the `any` matching mode, the name of the