Bug #44127 | mysql client: Unclear description of batch mode | ||
---|---|---|---|
Submitted: | 7 Apr 2009 8:13 | Modified: | 7 Apr 2009 8:28 |
Reporter: | Jørgen Austvik | Email Updates: | |
Status: | Verified | Impact on me: | |
Category: | MySQL Server: Command-line Clients | Severity: | S3 (Non-critical) |
Version: | 4.1, 5.0, 5,1, 6.0 bzr | OS: | Any |
Assigned to: | CPU Architecture: | Any |
[7 Apr 2009 8:13]
Jørgen Austvik
[7 Apr 2009 8:28]
Sveta Smirnova
Thank you for the report. Verified as described. Also I think "--batch batch Don't use history file" is confusing. Additionally default output is not as with --batch used: $mysql -e "select 1, 2" --batch 1 2 1 2 $mysql -e "select 1, 2" +---+---+ | 1 | 2 | +---+---+ | 1 | 2 | +---+---+ $mysql --version /Users/apple/Applications/mysql-5.1/bin/mysql Ver 14.14 Distrib 5.1.35, for apple-darwin8.11.1 (i386) using readline 5.1 While we have in client/mysql.cc: 1667 case 'e': 1668 status.batch= 1; 1669 status.add_to_history= 0;
[15 Apr 2009 8:01]
Sveta Smirnova
Category changed, because user manual relies here on output of mysql --help which needs to be fixed. Change to Docs bug again after fix of mysql --help output.