Bug #16857 | Altering BINARY(x) column uses incorrect padding | ||
---|---|---|---|
Submitted: | 27 Jan 2006 22:07 | Modified: | 9 Apr 2006 4:48 |
Reporter: | Kolbe Kegel | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server | Severity: | S1 (Critical) |
Version: | 5.0.19 | OS: | Linux (Linux) |
Assigned to: | Chad MILLER | CPU Architecture: | Any |
[27 Jan 2006 22:07]
Kolbe Kegel
[27 Jan 2006 22:46]
Jorge del Conde
Verified w/fresh pull of 5.0 under FC4
[2 Mar 2006 19:21]
Chad MILLER
Leads to data corruption.
[3 Mar 2006 1:00]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/3410
[3 Mar 2006 1:49]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/3411
[3 Mar 2006 2:10]
Chad MILLER
BINARY columns should not be treated as other *CHAR columns when it comes to expanding columns. Changeset 1.2096, in v5.0.19 changes the behavior to fill new positions in expanded BINARY columns with 0x00 bytes instead of ASCII spaces.
[4 Mar 2006 0:58]
Paul DuBois
Noted in 5.0.19 changelog. Using <literal>ALTER TABLE</literal> to increase the length of a <literal>BINARY(<replaceable>M</replaceable>)</literal> column caused column values to be padded with spaces rather than <literal>0x00</literal> bytes. (Bug #16857)
[9 Apr 2006 4:48]
Paul DuBois
Noted in 5.1.8 changelog, too.