CLIENT_MULTI_RESULTS is turned on by default

This commit is contained in:
lf0 2022-03-10 10:18:53 +08:00 committed by LINxiansheng
parent 0f517f5958
commit 438fa493c3
3 changed files with 5 additions and 8 deletions

View File

@ -1,12 +1,8 @@
---
name: Bug report
name: Bug report
about: Help us to improve this project
title: ''
labels: bug
assignees: caifeizhi
---
**Please check the FAQ documentation before raising an issue**
Please check the old issues before raising an issue in case someone has asked the same question that you are asking.

View File

@ -1,9 +1,6 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: new feature
assignees: caifeizhi
---

View File

@ -52,6 +52,10 @@ int OMPKHandshakeResponse::decode()
LOG_ERROR("ob only support mysql client protocol 4.1", K(ret));
} else {
ObMySQLUtil::get_uint4(pos, capability_.capability_);
// When the driver establishes a connection, it decides whether to open the CLIENT_MULTI_RESULTS
// capability according to the capability returned by the sever. Both mysql 5.6 and 8.0 versions
// are opened by default, and this behavior is compatible here by default.
capability_.cap_flags_.OB_CLIENT_MULTI_STATEMENTS = 1;
ObMySQLUtil::get_uint4(pos, max_packet_size_); // 16MB
ObMySQLUtil::get_uint1(pos, character_set_);
pos += HANDSHAKE_RESPONSE_RESERVED_SIZE; // 23 bytes reserved