Introduce internal protocol command enum

The enums exposed by the connector are not intended to be used by the
users of the library. The fact that the protocol, and other, modules used
it was in violation of how the library is intended to be used.

Adding an internal mapping into MaxScale also removes some of the
dependencies that the core has on the connector.
This commit is contained in:
Markus Mäkelä
2017-09-12 03:40:42 +03:00
parent 914ebb046a
commit 45e0e8bb59
29 changed files with 272 additions and 256 deletions

View File

@ -115,7 +115,7 @@ public:
uint8_t command = pPayload[0];
if (command == MYSQL_COM_QUERY)
if (command == MXS_COM_QUERY)
{
const uint8_t* pStmt = &pPayload[1];