MXS-1211: maxrows should be configurable to return error when limit has been exceeded

New parameter added to maxsrows filter:
max_resultset_return=empty|error|ok
Default, 'empty' is to return an empty set, as the current
implementation.
'err' will return an ERR reply with the input SQL statement
'ok' will return an OK packet
This commit is contained in:
MassimilianoPinto
2017-03-31 10:11:54 +02:00
parent 84ea6e6c8d
commit e6d2c96f5b
3 changed files with 302 additions and 42 deletions

View File

@ -74,6 +74,7 @@ MXS_BEGIN_DECLS
#define MYSQL_CHECKSUM_LEN 4
#define MYSQL_EOF_PACKET_LEN 9
#define MYSQL_OK_PACKET_MIN_LEN 11
#define MYSQL_ERR_PACKET_MIN_LEN 9
/**
* Offsets and sizes of various parts of the client packet. If the offset is