The params of COM_STMT_EXECUTE
may not be shown in tiproxy_traffic_replay.fail
#703
Labels
bug
Something isn't working
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
sample_stmt
in the tabletiproxy_traffic_replay.fail
2. What did you expect to see? (Required)
The parameters are correct
3. What did you see instead (Required)
The parameter is nil.
Reason:
paramNum
is contained in theComStmtPrepare
butparamTypes
is contained in the firstComStmtExecute
(with newParamBoundFlag==1). TiDB parses theparamTypes
by theparamNum
and then stores it.If the prepared statement is not executed before and is parsed from the session states, the
paramTypes
is empty. Besides, theparamNum
is not in the session states. When the firstComStmtExecute
comes, TiProxy is unable to parseparamTypes
because it doesn't know theparamNum
.4. What is your version? (Required)
v1.3.0
The text was updated successfully, but these errors were encountered: