'now' in 7.0

From: Oleg Bartunov <oleg(at)sai(dot)msu(dot)su>
To: pgsql-hackers(at)postgreSQL(dot)org
Subject: 'now' in 7.0
Date: 2000-02-22 21:24:30
Message-ID: Pine.GSO.3.96.SK.1000223000757.1714H-100000@ra
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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_until is 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(at)sai(dot)msu(dot)su, http://www.sai.msu.su/~megera/
phone: +007(095)939-16-83, +007(095)939-23-83

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message The Hermit Hacker 2000-02-22 21:32:19 Re: Splitting distributions (Was: Re: [HACKERS] ECPG / Release)
Previous Message The Hermit Hacker 2000-02-22 21:16:29 Re: Splitting distributions (Was: Re: [HACKERS] ECPG / Release)