MySQL Forums
Forum List  »  InnoDB

Re: Self-updating timestamp?
Posted by: Heikki Tuuri
Date: January 20, 2005 07:46PM

Ted,

it is the NULL keyword in the definition:

tChanged TIMESTAMP(14) NULL,

that spoils the timestamp. Remove that 'NULL'.

"
Beginning with MySQL 4.1.6, you can include the NULL attribute in the definition of a TIMESTAMP column to allow the column to contain NULL values. Before MySQL 4.1.6 (and even as of 4.1.6 if the NULL attribute is not specified), setting the column to NULL sets it to the current timestamp.
"

Best regards,

Heikki
Oracle Corp./Innobase Oy
InnoDB - transactions, row level locking, and foreign keys for MySQL

InnoDB Hot Backup - a hot backup tool for InnoDB which also backs up MyISAM tables
http://www.innodb.com/order.php

Options: ReplyQuote


Subject
Views
Written By
Posted
7735
January 18, 2005 04:44PM
3439
January 19, 2005 08:51AM
3186
January 19, 2005 02:47PM
3049
January 20, 2005 01:37PM
3195
January 20, 2005 02:52PM
Re: Self-updating timestamp?
3216
January 20, 2005 07:46PM
2990
January 21, 2005 08:15AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.