| Bug #10043 | DECIMAL, assignment of string with float value, crash | ||
|---|---|---|---|
| Submitted: | 20 Apr 2005 19:08 | Modified: | 6 May 2005 15:53 |
| Reporter: | Matthias Leich | Email Updates: | |
| Status: | Closed | Impact on me: | |
| Category: | MySQL Server | Severity: | S2 (Serious) |
| Version: | 5.0 | OS: | |
| Assigned to: | Alexey Botchkov | CPU Architecture: | Any |
[6 May 2005 15:53]
Alexey Botchkov
Thank you for your bug report. This issue has been committed to our
source repository of that product and will be incorporated into the
next release.
If necessary, you can access the source repository and build the latest
available version, including the bugfix, yourself. More information
about accessing the source trees is available at
http://www.mysql.com/doc/en/Installing_source_tree.html
Additional info:
Seems to be fixed with the 'big' patch
It'd be nice though if you, Matthias, check this one more time.

Description: It looks like any assignment of a string with a float value, where the absolute value is smaller than 1, to a DECIMAL leads to a server crash. --disable_warnings DROP TABLE IF EXISTS t1; --enable_warnings CREATE TABLE t1 ( f1 DECIMAL(10) ); # Crash INSERT INTO t1 SET f1 = '99.0e-2'; # harmless variants without crash INSERT INTO t1 SET f1 = 99.0e-2; INSERT INTO t1 SET f1 = '100.0e-2'; SELECT '99.0e-2' INTO OUTFILE 'infile.txt'; # also Crash LOAD DATA LOCAL INFILE 'var/master-data/test/infile.txt' INTO TABLE t1; My environment: - Intel PC with Linux(SuSE 9.1) - MySQL compiled from source Version 5.0 ChangeSet@1.1859, 2005-04-20 How to repeat: Please execute the statements above.