'now' in 7.0 - Mailing list pgsql-hackers

From Oleg Bartunov
Subject 'now' in 7.0
Date
Msg-id Pine.GSO.3.96.SK.1000223000757.1714H-100000@ra
Whole thread Raw
Responses Re: [HACKERS] 'now' in 7.0
List pgsql-hackers
Hi,

sorry if I miss something - there are so many changes in current
development and I didn't track them thoroughly in mailing list.

I've tried to port my db scheme which works with 6.5 to 7.0 and
got little problem:

create view www_auth as select  a.account as user_name, a.password, b.nick as 
group_name from users a, resources b, privilege_user_map c  where a.auth_id = c.auth_id and b.res_id = c.res_id and
(a.account_valid_untilis null or a.account_valid_until > datetime('now'::text))  and c.perm_id = 1;
 

ERROR:  No such function 'datetime' with the specified attributes

I had to use datetime('now'::text) as a workaround of bug in 6.5.3.

I tried just datetime('now') but still have the same problem.

Does the above view will works with now() ? 


Another problem:

create table tt (i int4, a datetime default 'now');
doesn't works and I still need 
create table tt (i int4, a datetime default now());

We have discussed this problem some time ago.
Regards,
    Oleg
_____________________________________________________________
Oleg Bartunov, sci.researcher, hostmaster of AstroNet,
Sternberg Astronomical Institute, Moscow University (Russia)
Internet: oleg@sai.msu.su, http://www.sai.msu.su/~megera/
phone: +007(095)939-16-83, +007(095)939-23-83



pgsql-hackers by date:

Previous
From: The Hermit Hacker
Date:
Subject: Re: Splitting distributions (Was: Re: [HACKERS] ECPG / Release)
Next
From: The Hermit Hacker
Date:
Subject: Re: Splitting distributions (Was: Re: [HACKERS] ECPG / Release)