Roger Wernersson (rw(at)mindark(dot)com) reports a bug with a severity of 3
The lower the number the more severe it is.
constraints evaluate 'now' immediately
I run Postgres 6.5.3 on Alpha/Linux.
I would like a constraint stating that a column may not have a date in the future:
CHECK(my_date <= 'now')
but I think it stores the time of constraint creation.
CREATE TABLE test (
my_date timestamp NOT NULL,
CONSTRAINT test_c_my_date CHECK (my_date <= 'now'));
--wait a second then
INSERT INTO test VALUES ('now');
No file was uploaded with this report
pgsql-bugs by date
|Next:||From: Eivind Kvedalen||Date: 2000-10-16 19:53:21|
|Previous:||From: Bruce Momjian||Date: 2000-10-16 16:59:21|
|Subject: Re: unique/references not honored when inheriting tables|