select into outfile not enclosing integer columns where this would disambiguate TERMINATED BY
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Drizzle |
Confirmed
|
Low
|
Stewart Smith | ||
MySQL Server |
Unknown
|
Unknown
|
Bug Description
This is MySQL and Drizzle... but MySQL just warns and gives you crap. Drizzle does error out (with upcoming patch along with outfile_loaddata test):
mysql> create table t1 (a int, b int);
Query OK, 0 rows affected (0.01 sec)
mysql> insert into t1 values (42, 42); Query OK, 1 row affected (0.00 sec)
mysql> select * into outfile '../tmp/bar' fields optionally enclosed by '"' terminated by '0' from t1;
Query OK, 1 row affected, 1 warning (0.00 sec)
mysql> show warnings;
+------
| Level | Code | Message |
+------
| Warning | 1475 | First character of the FIELDS TERMINATED string is ambiguous; please use non-optional and non-empty FIELDS ENCLOSED BY |
+------
1 row in set (0.01 sec)
mysql> Aborted
stewart@
42042
If enclosed by was used, this wouldn't be ambiguous. Only if enclosed by was something that could be displayed in a number would this be an issue.
Changed in drizzle: | |
importance: | Undecided → Low |
status: | New → Confirmed |
Changed in drizzle: | |
assignee: | nobody → stewart-flamingspork |
milestone: | none → aloha |
Changed in drizzle: | |
milestone: | aloha → bell |
Changed in drizzle: | |
milestone: | bell → cherry |
Changed in drizzle: | |
milestone: | 2010-04-26 → ongoing |