Hi

 I am using H2 1.3.59 and my table is declared as:

CREATE TABLE RESOURCELISTTYPE
(
        ID                                      IDENTITY,
        LASTMODIFIED                    TIMESTAMP                       DEFAULT 
CURRENT_TIMESTAMP
);

When inserting a row, the value for LASTMODIFIED is always NULL but is
declared DEFAULT.

The following works for MySQL:

CREATE TABLE RESOURCELISTTYPE
(
        ID                                      IDENTITY,
        LASTMODIFIED                    TIMESTAMP                       DEFAULT 
CURRENT_TIMESTAMP
ON UPDATE CURRENT_TIMESTAMP
);

Thanks.

-- 
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/h2-database?hl=en.

Reply via email to