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

From Tom Lane
Subject Re: error: cast the timestam expression
Date
Msg-id 29815.1106924652@sss.pgh.pa.us
Whole thread Raw
In response to error: cast the timestam expression  (friendVU admin <maillist@friendvu.com>)
List pgsql-sql
friendVU admin <maillist@friendvu.com> writes:
> 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!

I don't think so.  Let's see the definitions of the comments and xyz
tables (\d in psql will do).
        regards, tom lane


pgsql-sql by date:

Previous
From: friendVU admin
Date:
Subject: error: cast the timestam expression
Next
From: Michael Glaesemann
Date:
Subject: Re: error: cast the timestam expression