Bug #22415 | UPDATE updates fields that it shouldn't | ||
---|---|---|---|
Submitted: | 16 Sep 2006 16:15 | Modified: | 16 Sep 2006 16:20 |
Reporter: | [ name withheld ] | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server | Severity: | S2 (Serious) |
Version: | 5.0.24-Debian_1~bpo.1-log | OS: | Linux (Debian/AMD64 3.1) |
Assigned to: | CPU Architecture: | Any |
[16 Sep 2006 16:15]
[ name withheld ]
[16 Sep 2006 16:17]
[ name withheld ]
Here the CREATE TABLE so that you can create the table on your test system: mysql> show create table benutzer\G *************************** 1. row *************************** Table: benutzer Create Table: CREATE TABLE `benutzer` ( `id` int(11) NOT NULL auto_increment, `status` int(11) NOT NULL default '0', `dispname` varchar(30) NOT NULL, `pw_md5` char(32) default NULL, `registriert` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP, `online` timestamp NULL default NULL, `realname` varchar(50) default NULL, `email` varchar(100) default NULL, `homepage` varchar(100) default NULL, `jid` varchar(100) default NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT CHARSET=utf8 1 row in set (0.00 sec)
[16 Sep 2006 16:20]
[ name withheld ]
oh please close this I didn't see this "on update CURRENT_TIMESTAMP" ... I never set this, though