Re: Bug #603: time() problems with PostgreSQL 7.2 - Mailing list pgsql-bugs

From Tom Lane
Subject Re: Bug #603: time() problems with PostgreSQL 7.2
Date
Msg-id 29844.1014737327@sss.pgh.pa.us
Whole thread Raw
In response to Bug #603: time() problems with PostgreSQL 7.2  (pgsql-bugs@postgresql.org)
List pgsql-bugs
pgsql-bugs@postgresql.org writes:
> time('now') used to work but it doesn't work anymore in PostgreSQL 7.2.

TIME is a reserved word now, or at least more reserved than it used to
be, because we've added some SQL92 syntax that wasn't supported before.

Try
    "time"('now')
or
    'now'::time
or
    CAST('now' AS time)

In the INSERT command you showed originally, I don't actually believe
that you need any cast at all.

            regards, tom lane

pgsql-bugs by date:

Previous
From: pgsql-bugs@postgresql.org
Date:
Subject: Bug #604: string join problem
Next
From: Tom Lane
Date:
Subject: Re: Bug #604: string join problem