MXS-3297: Don't advertise unsupported capabilities
Only bulk execute is supported. Supporting progress reporting currently breaks the protocol result processing code.
This commit is contained in:
@ -272,6 +272,9 @@ typedef enum
|
||||
#define MXS_MARIA_CAP_COM_MULTI (1 << 1)
|
||||
#define MXS_MARIA_CAP_STMT_BULK_OPERATIONS (1 << 2)
|
||||
|
||||
// Only bulk operations are supported
|
||||
#define MXS_MARIADB_CAP_SERVER MXS_MARIA_CAP_STMT_BULK_OPERATIONS
|
||||
|
||||
typedef enum
|
||||
{
|
||||
MXS_COM_SLEEP = 0,
|
||||
|
@ -661,7 +661,8 @@ static void store_client_information(DCB* dcb, GWBUF* buffer)
|
||||
* there are extra capabilities stored in the last 4 bytes of the 23 byte filler. */
|
||||
if ((proto->client_capabilities & GW_MYSQL_CAPABILITIES_CLIENT_MYSQL) == 0)
|
||||
{
|
||||
proto->extra_capabilities = gw_mysql_get_byte4(data + MARIADB_CAP_OFFSET);
|
||||
uint32_t caps = gw_mysql_get_byte4(data + MARIADB_CAP_OFFSET);
|
||||
proto->extra_capabilities = caps & MXS_MARIADB_CAP_SERVER;
|
||||
}
|
||||
|
||||
if (len > MYSQL_AUTH_PACKET_BASE_SIZE)
|
||||
|
Reference in New Issue
Block a user