Phixsura commented on issue #28858:
URL: 
https://github.com/apache/shardingsphere/issues/28858#issuecomment-4470711881

   PR #38697.
   
   Same root cause @terrymanu sketched: backend reports YEAR as `Types.DATE`, 
`MySQLBinaryColumnType.valueOfJDBCType(int)` can't tell it apart, so the 
column-def packet ships `0x0a` and Connector/J never enters the YEAR branch.
   
   Followed the existing `PostgreSQLBinaryColumnType(int, String)` overload 
pattern. Only touched `ResponsePacketBuilder` (text protocol). The parametric 
test now pins the column-type byte for both YEAR and DATE.
   
   Binary protocol has the same gap, but needs a paired writer change 
(`java.sql.Date` → 2-byte short). Follow-up PR.


-- 
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