Bug #206 | Intermittent column display problem | ||
---|---|---|---|
Submitted: | 28 Mar 2003 8:16 | Modified: | 31 Mar 2003 12:23 |
Reporter: | [ name withheld ] | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Command-line Clients | Severity: | S3 (Non-critical) |
Version: | 4.0.12 | OS: | Any (Any) |
Assigned to: | CPU Architecture: | Any |
[28 Mar 2003 8:16]
[ name withheld ]
[28 Mar 2003 9:07]
[ name withheld ]
A workaround is to begin the select statements with: select ' ', Since the problem affects the first column only.
[31 Mar 2003 9:59]
MySQL Verification Team
The behavior reported I found when the source file is mixing spaces and tabs character between columns. Using a consistent formatted file the behavior was as expected: mysql> load data infile 'test.txt'" into table orig fields -> terminated by ";"; Query OK, 21 rows affected (0.00 sec) Records: 21 Deleted: 0 Skipped: 0 Warnings: 20 mysql> select * from orig; +-----------------+------------+-------+ | host | site | isbak | +-----------------+------------+-------+ | VADER | Wilmington | Yes | | WALLACE | Wilmington | Yes | | WUSUWPHDEVZB329 | Wilmington | No | | WBESGP01 | Wilmington | No | | WBESGP02 | Wilmington | No | | WBESGP03 | Wilmington | No | | WBESGP04 | Wilmington | No | | VADER | Wilmington | Yes | | WALLACE | Wilmington | Yes | | WUSUWPHDEVZB329 | Wilmington | No | | WBESGP01 | Wilmington | No | | WBESGP02 | Wilmington | No | | WBESGP03 | Wilmington | No | | WBESGP04 | Wilmington | No | | VADER | Wilmington | Yes | | WALLACE | Wilmington | Yes | | WUSUWPHDEVZB329 | Wilmington | No | | WBESGP01 | Wilmington | No | | WBESGP02 | Wilmington | No | | WBESGP03 | Wilmington | No | | WBESGP04 | Wilmington | No | +-----------------+------------+-------+ 21 rows in set (0.00 sec)
[31 Mar 2003 12:23]
MySQL Verification Team
For to complete the last post, in your case the command line should be: load data infile 'test.txt' into table orig lines terminated by "\r\n";