Bug #27541 | Mygration toolkit suppresses the warnings when number type is rounded. | ||
---|---|---|---|
Submitted: | 30 Mar 2007 8:59 | Modified: | 20 Oct 2008 13:29 |
Reporter: | mantani shigeki | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Migration Toolkit | Severity: | S2 (Serious) |
Version: | 1.1.11 | OS: | Windows (Windows XP SP2) |
Assigned to: | Mike Lischke | CPU Architecture: | Any |
[30 Mar 2007 8:59]
mantani shigeki
[4 May 2007 8:43]
Valeriy Kravchuk
Thank you for a bug report. Verified just as described while migrating table from Oracle XE to MySQL 5.0.37 on Windows, using latest MT 1.1.11. DEFAULT value is not rounded in CREATE TABLE generated, but as column is created as DECIMAL(38, 30) (not DECIMAL(38,31)), rounding occures.
[20 Oct 2008 13:29]
Mike Lischke
This is not a bug. Please read: http://dev.mysql.com/doc/refman/6.0/en/precision-math-decimal-changes.html. Maximum precision allowed in MySQL is 30, which is enforced by the migration toolkit to avoid server errors during migration. The default value is taken over as is but the server automatically rounds it if it does not fit into the given space (see http://dev.mysql.com/doc/refman/5.1/en/numeric-types.html).