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.
Portions of this website are copyright © 2001, 2002 The PHP Group
Page generated in 0.055 sec. using MySQL 8.4.7-u6-cloud
Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the
respective copyright holders.
It is not reviewed in advance
by Oracle and does not necessarily represent the opinion of
Oracle or any other party.