Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIXBUG: 【prepare】修复COM_STMT_EXECUTE,new_params_bind_flag为0分支的协议处理bug:没有复用parameter_types #629

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
修复COM_STMT_EXECUTE,new_params_bind_flag为0分支的协议处理bug:没有复用parameter_types
  • Loading branch information
carsonfeng committed Dec 4, 2023
commit c23e4747848b2635853d3c1ff8523a0941257f5e
4 changes: 3 additions & 1 deletion proxy/server/conn_stmt.go
Original file line number Diff line number Diff line change
Expand Up @@ -230,8 +230,10 @@ func (c *ClientConn) handleStmtExecute(data []byte) error {
pos += (paramNum << 1)

//paramValues = data[pos:]
} else {
// new_params_bind_flag 为 false,客户端在发送 COM_STMT_EXECUTE 命令时不需要再次发送 parameter_types
pos++
}
// new_params_bind_flag 为 false,客户端在发送 COM_STMT_EXECUTE 命令时不需要再次发送 parameter_types
paramValues = data[pos:]

if err := c.bindStmtArgs(s, nullBitmaps, paramTypes, paramValues); err != nil {
Expand Down