Bug #3529 mysql client: Short-form of --safe-updates (-U) doesn't work
Submitted: 21 Apr 2004 15:13 Modified: 28 Apr 2004 15:46
Reporter: Olaf van der Spek (Basic Quality Contributor) Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server Severity:S3 (Non-critical)
Version:4.0.18 OS:Windows (Windows XP)
Assigned to: Sergei Golubchik CPU Architecture:Any

[21 Apr 2004 15:13] Olaf van der Spek
Description:
mysql --safe-updates works, 
mysql -U doesn't.

How to repeat:
mysql  Ver 12.22 Distrib 4.0.18, for Win95/Win98 (i32)

mysql -h holafb -u xbt -ppass -D xbt -U
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 899 to server version: 4.0.17-nt

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql> insert into test values (), (), ();
Query OK, 3 rows affected (0.00 sec)
Records: 3  Duplicates: 0  Warnings: 0

mysql> delete from test;
Query OK, 3 rows affected (0.00 sec)

mysql> exit
Bye
[26 Apr 2004 1:16] Sergei Golubchik
Verified.

my_getopt treats short options of OPT_ARG type incorrectly
[28 Apr 2004 15:46] Sergei Golubchik
Thank you for your bug report. This issue has been committed to our
source repository of that product and will be incorporated into the
next release.

If necessary, you can access the source repository and build the latest
available version, including the bugfix, yourself. More information 
about accessing the source trees is available at
    http://www.mysql.com/doc/en/Installing_source_tree.html

Additional info:

fixed in 4.0.19