提交 438fa493 编写于 作者: L lf0 提交者: LINGuanRen

CLIENT_MULTI_RESULTS is turned on by default

上级 0f517f59
---
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.
......
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: new feature
assignees: caifeizhi
---
......
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册