Asthenia0412 opened a new pull request, #67970:
URL: https://github.com/apache/doris/pull/67970

   ### What problem does this PR solve?
   
   Issue Number: close #67349
   
   Problem Summary: The FE wrote a hardcoded 255 into the length field of every 
CHAR/VARCHAR/STRING column-definition packet, regardless of the length declared 
in the DDL. Clients that size buffers from result-set metadata (e.g. 
Connector/ODBC) therefore silently truncated longer string values. This change 
makes getMysqlTypeLength() report the declared length for CHAR/VARCHAR and caps 
the unbounded STRING type at MAX_VARCHAR_LENGTH (65533) so the 4-byte length 
field stays within MySQL TEXT semantics.
   
   ### Release note
   
   None
   
   ### Check List (For Author)
   
   - Test: Unit Test (MysqlSerializerStringLengthTest)
   - Behavior changed: No
   - Does this need documentation: No


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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to