Re: error: cast the timestam expression

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: friendVU admin <maillist(at)friendvu(dot)com>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: error: cast the timestam expression
Date: 2005-01-28 15:04:12
Message-ID: 29815.1106924652@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

friendVU admin <maillist(at)friendvu(dot)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

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Michael Glaesemann 2005-01-28 15:04:30 Re: error: cast the timestam expression
Previous Message friendVU admin 2005-01-28 14:55:58 error: cast the timestam expression