MXS-3297: Fix reading of extended MariaDB capabilities

The byte offset didn't take the size of the charset into account.
This commit is contained in:
Markus Mäkelä
2020-11-13 15:24:51 +02:00
parent 9dd736d4eb
commit 43c53e2f79

View File

@ -61,7 +61,7 @@ MXS_BEGIN_DECLS
#define MYSQL_CHARSET_OFFSET 12
#define MYSQL_CLIENT_CAP_OFFSET 4
#define MYSQL_CLIENT_CAP_SIZE 4
#define MARIADB_CAP_OFFSET MYSQL_CHARSET_OFFSET + 19
#define MARIADB_CAP_OFFSET MYSQL_CHARSET_OFFSET + 20
#define GW_MYSQL_PROTOCOL_VERSION 10 // version is 10
#define GW_MYSQL_HANDSHAKE_FILLER 0x00