Re: empty view, replace view, column type change?

Поиск
Список
Период
Сортировка
От Rod Taylor
Тема Re: empty view, replace view, column type change?
Дата
Msg-id 1119558411.35441.104.camel@home
обсуждение исходный текст
Ответ на Re: empty view, replace view, column type change?  (Markus Bertheau <twanger@bluetwanger.de>)
Ответы Re: empty view, replace view, column type change?
Список pgsql-sql
On Thu, 2005-06-23 at 22:27 +0200, Markus Bertheau wrote:
> Dnia 23-06-2005, czw o godzinie 16:19 -0400, Rod Taylor napisał(a):
> 
> > The data types are different, as one has the timestamp to (6) decimal
> > places after seconds.
> 
> That's strange. I explicitly specified ::TIMESTAMP on both the view and
> the table. Is that not unambiguous?

LOCALTIMESTAMP is probably more specific, so it folds the length in.

If you SELECT 'abc'::varchar(6)::varchar, the end type is varchar(6).

Cast them both to timestamp(N) and what you're trying to do should work.

-- 



В списке pgsql-sql по дате отправления:

Предыдущее
От: Markus Bertheau
Дата:
Сообщение: Re: empty view, replace view, column type change?
Следующее
От: Tom Lane
Дата:
Сообщение: Re: empty view, replace view, column type change?