[CP] fix not database feedback while .net driver connect

This commit is contained in:
obdev
2024-02-06 17:49:21 +00:00
committed by ob-robot
parent 673fe94c68
commit fcaa9921e8

View File

@ -632,13 +632,17 @@ int ObMPPacketSender::send_ok_packet(ObSQLSessionInfo &session, ObOKPParam &ok_p
if (OB_SUCC(ret)) {
if (conn_->is_normal_client()) {
okp.set_use_standard_serialize(true);
if (OB_FAIL(ObMPUtils::add_nls_format(okp, session, true))) {
if (OB_FAIL(ObMPUtils::add_changed_session_info(okp, session))) {
SERVER_LOG(WARN, "fail to add changed session info", K(ret));
} else if (OB_FAIL(ObMPUtils::add_nls_format(okp, session, true))) {
LOG_WARN("fail to add_nls_format", K(ret));
}
} else if (conn_->is_driver_client()) {
// will not track session variables, do nothing
okp.set_use_standard_serialize(true);
if (OB_FAIL(ObMPUtils::add_nls_format(okp, session, true))) {
if (OB_FAIL(ObMPUtils::add_changed_session_info(okp, session))) {
SERVER_LOG(WARN, "fail to add changed session info", K(ret));
} else if (OB_FAIL(ObMPUtils::add_nls_format(okp, session, true))) {
LOG_WARN("fail to add_nls_format", K(ret));
}
} else {