Re: error: cast the timestam expression

Поиск
Список
Период
Сортировка
От Michael Glaesemann
Тема Re: error: cast the timestam expression
Дата
Msg-id E948899A-713D-11D9-8469-000A95C88220@myrealbox.com
обсуждение исходный текст
Ответ на error: cast the timestam expression  (friendVU admin <maillist@friendvu.com>)
Список 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 по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: error: cast the timestam expression
Следующее
От: Franco Bruno Borghesi
Дата:
Сообщение: Re: Calendar Function