[MDEV-719] LP:1002131 - Unexpected warning emitted when inserting into a float number Created: 2012-05-21  Updated: 2014-04-09  Resolved: 2014-04-09

Status: Closed
Project: MariaDB Server
Component/s: None
Affects Version/s: None
Fix Version/s: 10.0.10

Type: Bug Priority: Minor
Reporter: Igor Babaev Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: Launchpad, upstream

Attachments: XML File LPexportBug1002131.xml    

 Description   

The following sequence of commands produces an unexpected warning in MariaDB 5.2/5.5:

MariaDB [test]> CREATE TABLE t1 (f FLOAT);
Query OK, 0 rows affected (0.00 sec)
 
MariaDB [test]> INSERT INTO t1 VALUES ('1.');
Query OK, 1 row affected, 1 warning (0.00 sec)
 
MariaDB [test]> SHOW WARNINGS;
+---------+------+----------------------------------------+
| Level   | Code | Message                                |
+---------+------+----------------------------------------+
| Warning | 1265 | Data truncated for column 'f' at row 1 |
+---------+------+----------------------------------------+
1 row in set (0.00 sec)



 Comments   
Comment by Rasmus Johansson (Inactive) [ 2012-05-21 ]

Launchpad bug id: 1002131

Comment by Sergei Golubchik [ 2013-01-02 ]

fixed in mysql-5.6.5

Comment by Elena Stepanova [ 2014-04-09 ]

Fixed in 10.0.10 by the following revision:
http://bazaar.launchpad.net/~maria-captains/maria/10.0/revision/4052

revno: 4052
revision-id: sanja@montyprogram.com-20140314073116-nklb0jkjd4t1w40n
parent: monty@mariadb.org-20140313144311-hmphz2gup3qdjlp9
committer: sanja@montyprogram.com
branch nick: work-maria-10.0-MDEV-5819
timestamp: Fri 2014-03-14 09:31:16 +0200
message:
  MDEV-5819: MySQL Bug #13500371 63704: CONVERSION OF '1.' TO A NUMBER GIVES ERROR 1265 (WARN_DATA_TRUNCATED)
  
  Fix by MySQL ported

Generated at Thu Feb 08 06:30:50 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.