Re: error: cast the timestam expression

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: error: cast the timestam expression
Дата
Msg-id 29815.1106924652@sss.pgh.pa.us
обсуждение исходный текст
Ответ на error: cast the timestam expression  (friendVU admin <maillist@friendvu.com>)
Список 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 по дате отправления:

Предыдущее
От: friendVU admin
Дата:
Сообщение: error: cast the timestam expression
Следующее
От: Michael Glaesemann
Дата:
Сообщение: Re: error: cast the timestam expression