Bug #120682 Connector/J decodes MySQL JSON columns with connection encoding when metadata collation is binary
Submitted: 14 Jun 9:23
Reporter: Junjie Zhang (OCA) Email Updates:
Status: Open Impact on me:
None 
Category:Connector / J Severity:S3 (Non-critical)
Version:Connector/J 5.1.49 MySQL Server 5.7.44 OS:Any
Assigned to: CPU Architecture:Any
Tags: charset, connector-j, gbk, json

To submit contributions, please log in.

[14 Jun 9:29] Junjie Zhang
Patch for Connector/J 5.1.49: preserve FIELD_TYPE_JSON field encoding when result metadata collation is binary, instead of falling back to the connection encoding.

(*) I confirm the code being submitted is offered under the terms of the OCA, and that I am authorized to contribute it.

Attachment: mysql-connector-java-5.1.49-json-field-encoding.patch (application/octet-stream, text), 1.43 KiB.