MySqlCC 0.8.10-beta, unwanted mass update/delete

Hi!

Bug Report
----------

Version: MySQL Control Center 0.8.10-beta
Summary: Unwanted mass update/delete via result grid if table primary key is double(32,0)
Comment: with int key problem won't occur.

(No need to discuss bad table structure with double type as key, nevertheless mysqlcc bug)

How-To-Repeat:

1. Copy and execute following sql-script in mysqlcc SQL window of some test db:

############################
DROP TABLE IF EXISTS suser;
CREATE TABLE suser (
uid double(32,0) NOT NULL auto_increment,
username varchar(100) NOT NULL default '',
password varchar(64) default NULL,
PRIMARY KEY (uid),
KEY username (username)
) TYPE=MyISAM;
INSERT INTO suser VALUES (155,'abc','abc');
INSERT INTO suser VALUES (156,'def','def');
INSERT INTO suser VALUES (157,'xyz','xyz');

SELECT * FROM suser WHERE username = 'abc';

# update password in grid from abc to 123 --> 3 rows affected! (in fact all rows are affected)

# select single entry and press delete record button in toolbar --> 3 rows deleted! (in fact all rows are deleted)
############################

2. update password in grid from abc to 123 --> 3 rows affected! (in fact all rows are affected)

3. select single entry and press delete record button in toolbar --> 3 rows deleted! (in fact all rows are deleted)

4. re-run script with primary key column uid of type int and problem does not occur.

Caused me quite some trouble when problem happened with more important table/db.

gr, Juergen.

------------------------------------------------------------ ---------
Sent through MailGateway - http://www.ssw.uni-linz.ac.at:2000/
Send AND read your emails EVERYwhere.
------------------------------------------------------------ ---------

------------------------------------------------------------ ---------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)

To request this thread, e-mail bugs-thread13912 [at] lists.mysql.com
To unsubscribe, e-mail <bugs-unsubscribe [at] lists.mysql.com>
proxy99 [ Do, 06 März 2003 11:49 ] [ ID #57291 ]

Re: MySqlCC 0.8.10-beta, unwanted mass update/delete

Hi!

This is now fixed, thanks for the bug-report!

Regards,
Jorge
--
For technical support contracts, visit https://order.mysql.com/?ref=mjdc
__ ___ ___ ____ __
/ |/ /_ __/ __/ __ \/ / Mr. Jorge del Conde <jorge [at] mysql.com>
/ /|_/ / // /\ \/ /_/ / /__ MySQL AB, Full-Time Developer
/_/ /_/\_, /___/\___\_\___/ Mexico City, Mexico
<___/ www.mysql.com

MySQL Users Conference and Expo
http://www.mysql.com/events/uc2003/

----- Original Message -----
From: <proxy99 [at] web.de>
To: <bugs [at] lists.mysql.com>
Sent: Thursday, March 06, 2003 4:49 AM
Subject: MySqlCC 0.8.10-beta, unwanted mass update/delete


> Hi!
>
> Bug Report
> ----------
>
> Version: MySQL Control Center 0.8.10-beta
> Summary: Unwanted mass update/delete via result grid if table primary key
is double(32,0)
> Comment: with int key problem won't occur.
>
> (No need to discuss bad table structure with double type as key,
nevertheless mysqlcc bug)
>
> How-To-Repeat:
>
> 1. Copy and execute following sql-script in mysqlcc SQL window of some
test db:
>
> ############################
> DROP TABLE IF EXISTS suser;
> CREATE TABLE suser (
> uid double(32,0) NOT NULL auto_increment,
> username varchar(100) NOT NULL default '',
> password varchar(64) default NULL,
> PRIMARY KEY (uid),
> KEY username (username)
> ) TYPE=MyISAM;
> INSERT INTO suser VALUES (155,'abc','abc');
> INSERT INTO suser VALUES (156,'def','def');
> INSERT INTO suser VALUES (157,'xyz','xyz');
>
> SELECT * FROM suser WHERE username = 'abc';
>
> # update password in grid from abc to 123 --> 3 rows affected! (in fact
all rows are affected)
>
> # select single entry and press delete record button in toolbar --> 3 rows
deleted! (in fact all rows are deleted)
> ############################
>
> 2. update password in grid from abc to 123 --> 3 rows affected! (in fact
all rows are affected)
>
> 3. select single entry and press delete record button in toolbar --> 3
rows deleted! (in fact all rows are deleted)
>
> 4. re-run script with primary key column uid of type int and problem does
not occur.
>
> Caused me quite some trouble when problem happened with more important
table/db.
>
> gr, Juergen.
>
> ------------------------------------------------------------ ---------
> Sent through MailGateway - http://www.ssw.uni-linz.ac.at:2000/
> Send AND read your emails EVERYwhere.
> ------------------------------------------------------------ ---------
>
> ------------------------------------------------------------ ---------
> Before posting, please check:
> http://www.mysql.com/manual.php (the manual)
> http://lists.mysql.com/ (the list archive)
>
> To request this thread, e-mail bugs-thread13912 [at] lists.mysql.com
> To unsubscribe, e-mail <bugs-unsubscribe [at] lists.mysql.com>
>



------------------------------------------------------------ ---------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)

To request this thread, e-mail bugs-thread13916 [at] lists.mysql.com
To unsubscribe, e-mail <bugs-unsubscribe [at] lists.mysql.com>
Jorge del Conde [ Fr, 07 März 2003 00:07 ] [ ID #57295 ]

Re: MySqlCC 0.8.10-beta, unwanted mass update/delete

Hi,

This bug was fixed in MySQLCC 0.9.0!

Thanks for the bug-report.

Regards,
Jorge
--
For technical support contracts, visit https://order.mysql.com/?ref=mjdc
__ ___ ___ ____ __
/ |/ /_ __/ __/ __ \/ / Mr. Jorge del Conde <jorge [at] mysql.com>
/ /|_/ / // /\ \/ /_/ / /__ MySQL AB, Full-Time Developer
/_/ /_/\_, /___/\___\_\___/ Mexico City, Mexico
<___/ www.mysql.com

MySQL Users Conference and Expo
http://www.mysql.com/events/uc2003/

----- Original Message -----
From: <proxy99 [at] web.de>
To: <bugs [at] lists.mysql.com>
Sent: Thursday, March 06, 2003 4:49 AM
Subject: MySqlCC 0.8.10-beta, unwanted mass update/delete


> Hi!
>
> Bug Report
> ----------
>
> Version: MySQL Control Center 0.8.10-beta
> Summary: Unwanted mass update/delete via result grid if table primary key
is double(32,0)
> Comment: with int key problem won't occur.
>
> (No need to discuss bad table structure with double type as key,
nevertheless mysqlcc bug)
>
> How-To-Repeat:
>
> 1. Copy and execute following sql-script in mysqlcc SQL window of some
test db:
>
> ############################
> DROP TABLE IF EXISTS suser;
> CREATE TABLE suser (
> uid double(32,0) NOT NULL auto_increment,
> username varchar(100) NOT NULL default '',
> password varchar(64) default NULL,
> PRIMARY KEY (uid),
> KEY username (username)
> ) TYPE=MyISAM;
> INSERT INTO suser VALUES (155,'abc','abc');
> INSERT INTO suser VALUES (156,'def','def');
> INSERT INTO suser VALUES (157,'xyz','xyz');
>
> SELECT * FROM suser WHERE username = 'abc';
>
> # update password in grid from abc to 123 --> 3 rows affected! (in fact
all rows are affected)
>
> # select single entry and press delete record button in toolbar --> 3 rows
deleted! (in fact all rows are deleted)
> ############################
>
> 2. update password in grid from abc to 123 --> 3 rows affected! (in fact
all rows are affected)
>
> 3. select single entry and press delete record button in toolbar --> 3
rows deleted! (in fact all rows are deleted)
>
> 4. re-run script with primary key column uid of type int and problem does
not occur.
>
> Caused me quite some trouble when problem happened with more important
table/db.
>
> gr, Juergen.
>
> ------------------------------------------------------------ ---------
> Sent through MailGateway - http://www.ssw.uni-linz.ac.at:2000/
> Send AND read your emails EVERYwhere.
> ------------------------------------------------------------ ---------
>
> ------------------------------------------------------------ ---------
> Before posting, please check:
> http://www.mysql.com/manual.php (the manual)
> http://lists.mysql.com/ (the list archive)
>
> To request this thread, e-mail bugs-thread13912 [at] lists.mysql.com
> To unsubscribe, e-mail <bugs-unsubscribe [at] lists.mysql.com>
>
>
>



--
MySQL Bugs Mailing List
For list archives: http://lists.mysql.com/bugs
To unsubscribe: http://lists.mysql.com/bugs?unsub=gcdmb-bugs [at] m.gmane.org
Jorge del Conde [ Mi, 30 April 2003 20:51 ] [ ID #67734 ]
Datenbanken » gmane.comp.db.mysql.bugs » MySqlCC 0.8.10-beta, unwanted mass update/delete

Vorheriges Thema: different DISTINCT ordering with InnoDB and MyISAM
Nächstes Thema: editing tables with MySQLCC