- Notifications
You must be signed in to change notification settings - Fork 289
Open
Labels
kind/bugSomething isn't workingSomething isn't workingseverity/s0Extreme impact: Cause the application to break down and seriously affect the useExtreme impact: Cause the application to break down and seriously affect the use
Milestone
Description
Is there an existing issue for the same bug?
- I have checked the existing issues.
Branch Name
main
Commit ID
Other Environment Information
- Hardware parameters:
- OS type: Linux
- Others:
Actual Behavior
Prepared-statement binary execute on main does not handle MYSQL_TYPE_JSON parameters. When a client sends a JSON-typed parameter in COM_STMT_EXECUTE, ParseExecuteData falls through to the default branch and returns unsupport parameter type.
Expected Behavior
MYSQL_TYPE_JSON parameters should be parsed like other length-encoded string payloads and reach statement execution successfully.
Steps to Reproduce
- Prepare a statement with a JSON placeholder, for example
select ?orinsert into t values (?)where the target parameter is JSON. - Execute it through the MySQL binary prepared-statement protocol with the parameter type set to
MYSQL_TYPE_JSONand a valid JSON payload. - Observe that
mainreturnsunsupport parameter typefromParseExecuteData.
Additional information
Local focused regression coverage for the fix:
TestParseExecuteDataWithJSONParam
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
kind/bugSomething isn't workingSomething isn't workingseverity/s0Extreme impact: Cause the application to break down and seriously affect the useExtreme impact: Cause the application to break down and seriously affect the use