Bug #63116 | pad_char_to_full_length and TEXT types | ||
---|---|---|---|
Submitted: | 6 Nov 2011 13:50 | Modified: | 7 May 2012 19:25 |
Reporter: | Peter Laursen (Basic Quality Contributor) | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Documentation | Severity: | S3 (Non-critical) |
Version: | any | OS: | Any |
Assigned to: | Paul DuBois | CPU Architecture: | Any |
Tags: | qc |
[6 Nov 2011 13:50]
Peter Laursen
[6 Nov 2011 15:03]
Peter Laursen
This page http://dev.mysql.com/doc/refman/5.5/en/blob.html lists sme particularies with TEXT types "Truncation of excess trailing spaces from values to be inserted into TEXT columns always generates a warning, regardless of the SQL mode. If a TEXT column is indexed, index entry comparisons are space-padded at the end. This means that, if the index requires unique values, duplicate-key errors will occur for values that differ only in the number of trailing spaces. For example, if a table contains 'a', an attempt to store 'a ' causes a duplicate-key error. This is not true for BLOB columns." .. but nowhere do I find it documented that as regards padding (on INSERT) and retrival (on SELECT) of trailing spaces a TEXT behaves identically to a VARCHAR (what I think it does). BTW: the two 'particularities' quoted above look to me like 'documented bugs'. Any chance that they can be fixed?
[7 May 2012 19:25]
Paul DuBois
Thank you for your bug report. This issue has been addressed in the documentation. The updated documentation will appear on our website shortly, and will be included in the next release of the relevant products. " For TEXT and BLOB columns, there is no padding on insert and no bytes are stripped on select. "