From d4da5caf3b1f4d0f9bbf329819eeb72961bd04e2 Mon Sep 17 00:00:00 2001 From: MassimilianoPinto Date: Mon, 3 Apr 2017 08:39:12 +0200 Subject: [PATCH] MXS-1211: MaxRows documentation update MXS-1211: MaxRows documentation update --- Documentation/Filters/Maxrows.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/Documentation/Filters/Maxrows.md b/Documentation/Filters/Maxrows.md index 5941affc9..f85a929ce 100644 --- a/Documentation/Filters/Maxrows.md +++ b/Documentation/Filters/Maxrows.md @@ -55,6 +55,28 @@ max_resultset_size=128 ``` The default value is 64. +#### `max_resultset_return` + +Specifies what the filter sends to the client when the +rows or size limit is hit, possible values: + +- an empty result set +- an error packet with input SQL +- an OK packet + + +``` +max_resultset_size=empty|error|ok +``` +The default result type is 'empty' + +Example output with ERR packet: + +``` +MariaDB [(test)]> select * from test.t4; +ERROR 1415 (0A000): Row limit/size exceeded for query: select * from test.t4 +``` + #### `debug` An integer value, using which the level of debug logging made by the maxrows