TeslaCN commented on issue #28217:
URL: 
https://github.com/apache/shardingsphere/issues/28217#issuecomment-1689506607

   go-driver-mysql sending byte[] with type `FIELD_TYPE_STRING (254)`.
   
   
https://github.com/go-sql-driver/mysql/blob/7cf548287682c36ebce3b7966f2693d58094bd5a/packets.go#L1158-L1175
   
   But Proxy convert it to String with specified encoding, which could corrupt 
the raw bytes.
   
https://github.com/apache/shardingsphere/blob/3ba6204888a1e9e912ee652933b645aad656a9d9/db-protocol/mysql/src/main/java/org/apache/shardingsphere/db/protocol/mysql/packet/command/query/binary/execute/protocol/MySQLStringLenencBinaryProtocolValue.java#L29
   
   I'm fixing this.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to