Re: error: cast the timestam expression - Mailing list pgsql-sql

From Michael Glaesemann
Subject Re: error: cast the timestam expression
Date
Msg-id E948899A-713D-11D9-8469-000A95C88220@myrealbox.com
Whole thread Raw
In response to error: cast the timestam expression  (friendVU admin <maillist@friendvu.com>)
List pgsql-sql
On Jan 28, 2005, at 23:55, friendVU admin wrote:

> When I execute this:
> "insert into comments
>    (
>     date_posted
>     )
>      (select  date_published
>    from xyz
>     )"
>
> I get :
> "ERROR:  column "date_posted" is of type timestamp without time zone 
> but expression is of type text
> HINT:  You will need to rewrite or cast the expression."
>
> Both dates are of type timesamp!

Could you post the output to \d xyz and \d comments from psql?

Michael Glaesemann
grzm myrealbox com



pgsql-sql by date:

Previous
From: Tom Lane
Date:
Subject: Re: error: cast the timestam expression
Next
From: Franco Bruno Borghesi
Date:
Subject: Re: Calendar Function