[MDEV-5057] Importing number from CSV, scientific notation with comma instead of period doesn't work Created: 2013-09-23 Updated: 2013-11-22 Resolved: 2013-09-23 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | 5.5.32-galera |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Minor |
| Reporter: | Christiaan Mulder | Assignee: | Sergei Golubchik |
| Resolution: | Not a Bug | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Windows, working with HeidiSQL |
||
| Description |
|
I'm importing millions of numbers into a database using:
The numbers are mostly formatted like: 8,70840419842013E-03. New to MariaDB (and creating issues on this board) so please be gentle or give me tips on how to improve this issue. If this should be filed differently, please let me know. |
| Comments |
| Comment by Sergei Golubchik [ 2013-09-23 ] |
|
This is not a bug, MariaDB uses a dot (.), not comma (,) as a decimal separator. If you'd like to import your file, you can do it with (let's assume, the table has three columns, and the third one is your FLOAT): LOAD DATA LOCAL INFILE 'filename' |
| Comment by Christiaan Mulder [ 2013-09-23 ] |
|
Hi Sergei, For number not using scientific notation, MariaDB works fine with comma as a decimal separator. That's what made me make a bug report. Your view on that? Regards, Christiaan |
| Comment by Sergei Golubchik [ 2013-11-22 ] |
|
I cannot repeat it. I tried to load numbers in scientific and not scientific notation, with commas and with dots, using your exact LOAD DATA LOCAL INFILE statement. In all cases dots worked as decimal separators and commas never did. |