18 messages in com.mysql.lists.bugsRe: Update problem| From | Sent On | Attachments |
|---|---|---|
| Alexander Aulbach | 04 Dec 2000 15:46 | |
| Sinisa Milivojevic | 05 Dec 2000 05:28 | |
| Alexander Aulbach | 06 Dec 2000 04:39 | |
| Sinisa Milivojevic | 06 Dec 2000 04:55 | |
| Alexander Aulbach | 06 Dec 2000 06:58 | |
| Michael Widenius | 06 Dec 2000 10:56 | |
| Sasha Pachev | 06 Dec 2000 11:39 | |
| Alexander Aulbach | 07 Dec 2000 06:42 | |
| Michael Widenius | 07 Dec 2000 17:39 | |
| Alexander Aulbach | 08 Dec 2000 04:22 | |
| Michael Widenius | 09 Dec 2000 04:38 | |
| Werner Maier | 09 Dec 2000 06:51 | |
| Michael Widenius | 10 Dec 2000 07:23 | |
| Alexander Aulbach | 11 Dec 2000 07:10 | |
| Alexander Aulbach | 13 Dec 2000 07:02 | .tgz |
| Michael Widenius | 14 Dec 2000 23:04 | |
| Alexander Aulbach | 15 Dec 2000 03:28 | |
| Michael Widenius | 15 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
--
Alexander Aulbach, Dipl. Inf. (FH) Main Media GmbH Tel: ++49 (931) 6001-610 Berner Str. 2 Fax: ++49 (931) 6001-285 97084 Würzburg
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
____ __ _____ _____ ___ == MySQL AB /*/\*\/\*\ /*/ \*\ /*/ \*\ |*| Sinisa Milivojevic /*/ /*/ /*/ \*\_ |*| |*||*| mailto:sin...@mysql.com /*/ /*/ /*/\*\/*/ \*\|*| |*||*| Larnaka, Cyprus /*/ /*/ /*/\*\_/*/ \*\_/*/ |*|____ ^^^^^^^^^^^^/*/^^^^^^^^^^^\*\^^^^^^^^^^^ /*/ \*\ Developers Team





.tgz