db-derby-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Amir Michail" <amich...@gmail.com>
Subject changing the default value for a column
Date Sat, 16 Jun 2007 18:23:38 GMT

The column in question has type timestamp yet this doesn't work:

ij> alter table <tablename> alter column <columnname> default current_timestamp;
ERROR 22005: An attempt was made to get a data value of type 'long'
from a data value of type 'TIMESTAMP'.

The table does not have any rows.


View raw message