Bug #4936 | DOUBLE (4,2) field record only up to 99.99 | ||
---|---|---|---|
Submitted: | 6 Aug 2004 20:25 | Modified: | 7 Aug 2004 10:18 |
Reporter: | Rodrigo Mourao | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server: InnoDB storage engine | Severity: | S1 (Critical) |
Version: | 4.1.3b | OS: | Windows (Windows) |
Assigned to: | Sergei Golubchik | CPU Architecture: | Any |
[6 Aug 2004 20:25]
Rodrigo Mourao
[6 Aug 2004 20:26]
Rodrigo Mourao
Bug in record count of version 4.1.3b
Attachment: mysql_bug - 4.1.3b.jpg (image/pjpeg, text), 163.92 KiB.
[6 Aug 2004 20:31]
Rodrigo Mourao
Mysql 4.1.1a ok
Attachment: mysql_ok - 4.1.1a.jpg (image/pjpeg, text), 143.50 KiB.
[6 Aug 2004 23:55]
MySQL Verification Team
I am changing to verified status because at least it is a not documented change between versions.
[7 Aug 2004 1:45]
Rodrigo Mourao
I repeat the test in 4.1.2-alpha and it have the same bug I try to recreate the table in this version but the bug is there
[7 Aug 2004 10:18]
Sergei Golubchik
Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.mysql.com/documentation/ and the instructions on how to report a bug at http://bugs.mysql.com/how-to-report.php Additional info: Type specification is FLOAT(M, D). According to the http://dev.mysql.com/doc/mysql/en/Column_types.html M Indicates the maximum display size. The maximum legal display size is 255. D Applies to floating-point and fixed-point types and indicates the number of digits following the decimal point. The maximum possible value is 30, but should be no greater than M-2. so if you have total display width 4, and 2 of them are used for digits after floating point, then, naturally, you cannot have more than 2 digis before floating point. It's the correct behaviour, as defined by the standard.
[9 Aug 2004 1:55]
Rodrigo Mourao
Thanks, Sorry by my wrong submission. I test and all its ok. I take the mistake because in old version its work and now I need to set the field with longer with. Kind Regards