18 messages in com.mysql.lists.bugsRe: Update problem
FromSent OnAttachments
Alexander Aulbach04 Dec 2000 15:46 
Sinisa Milivojevic05 Dec 2000 05:28 
Alexander Aulbach06 Dec 2000 04:39 
Sinisa Milivojevic06 Dec 2000 04:55 
Alexander Aulbach06 Dec 2000 06:58 
Michael Widenius06 Dec 2000 10:56 
Sasha Pachev06 Dec 2000 11:39 
Alexander Aulbach07 Dec 2000 06:42 
Michael Widenius07 Dec 2000 17:39 
Alexander Aulbach08 Dec 2000 04:22 
Michael Widenius09 Dec 2000 04:38 
Werner Maier09 Dec 2000 06:51 
Michael Widenius10 Dec 2000 07:23 
Alexander Aulbach11 Dec 2000 07:10 
Alexander Aulbach13 Dec 2000 07:02.tgz
Michael Widenius14 Dec 2000 23:04 
Alexander Aulbach15 Dec 2000 03:28 
Michael Widenius15 Dec 2000 16:51 
Subject:Re: Update problem
From:Sinisa Milivojevic (sin@mysql.com)
Date:12/05/2000 05:28:38 AM
List:com.mysql.lists.bugs

Alexander Aulbach writes:

In the current version of mysql 3.23 it is not possible to update a key to the same value you have inserted. I know that this formerly worked.

BTW: You have done a really great job. :-)

# mysqladmin version mysqladmin Ver 8.12 Distrib 3.23.28-gamma, for pc-linux-gnu on i586 Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB This software comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to modify and redistribute it under the GPL license

Server version 3.23.28-gamma-log Protocol version 10 Connection Localhost via UNIX socket UNIX socket /tmp/mysql.sock Uptime: 4 hours 49 min 33 sec

mysql> desc texts; +-------------+------------------+------+-----+---------+-------+---------------------------------+ | Field | Type | Null | Key | Default | Extra | Privileges | +-------------+------------------+------+-----+---------+-------+---------------------------------+ | aid | int(10) unsigned | | PRI | 0 | | select,insert,update,references | | contenttype | varchar(40) | | PRI | | | select,insert,update,references | | a_text | text | | | | | select,insert,update,references | +-------------+------------------+------+-----+---------+-------+---------------------------------+

mysql> UPDATE texts SET a_text='BMW 320i, EZ 10/95, 96 tkm, d.blau, Klima, ESSD, Servo, ZV, ABS, VB 24.500.- Telefon:xxxx', aid=17732, contenttype='text/text' # ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^here it is! WHERE aid = 17732 AND contenttype = 'text/text';

ERROR 1062: Duplicate entry '17732-text/text' for key 3

mysql> update texts seT a_text='BMW 320i, EZ 10/95, 96 tkm, d.blau, Klima, ESSD, Servo, ZV, ABS, VB 24.500.- Telefon:xxxx' WHERE aid = 17732 AND contenttype = 'text/text';

Query OK, 1 row affected (0.00 sec) Rows matched: 1 Changed: 1 Warnings: 0

Hi!

Please check out if your indices in the above table are OK.

If they are OK and you still get the above error with 3.23.28, please upload a dump of the table with the entire description of the problem and the above UPDATE statement to our server.

When you are ready to upload, please write for specific instrucionts.

Regards,

Sinisa