Bug #32823 | Incompatible change of decimal column in 5.0. -0.00 no longer supported. | ||
---|---|---|---|
Submitted: | 28 Nov 2007 17:07 | Modified: | 3 Dec 2007 17:12 |
Reporter: | Morgan Tocker | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server | Severity: | S3 (Non-critical) |
Version: | 4.1, 5.0.50 | OS: | Any |
Assigned to: | Alexey Botchkov | CPU Architecture: | Any |
Tags: | regression |
[28 Nov 2007 17:07]
Morgan Tocker
[30 Nov 2007 14:20]
Paul DuBois
The behavior observed is to be expected as described here: http://dev.mysql.com/doc/refman/5.0/en/precision-math-decimal-changes.html "As a result of the change from string to numeric format for DECIMAL storage, DECIMAL columns no longer store a leading + character or leading 0 digits. Before MySQL 5.0.3, if you inserted +0003.1 into a DECIMAL(5,1) column, it was stored as +0003.1. As of MySQL 5.0.3, it is stored as 3.1. Applications that rely on the older behavior must be modified to account for this change." I will add modify that passage to note that leading '-' characters are not stored as such, either. I'll also add a cross reference to this section from the upgrade notes.
[3 Dec 2007 17:12]
Paul DuBois
Closing report because the change in behavior is documented as previously noted.