Re: issue with an assembled date field

Поиск
Список
Период
Сортировка
От Chris Bowlby
Тема Re: issue with an assembled date field
Дата
Msg-id 1204312031.2839.53.camel@efnisien.dreadnet.org
обсуждение исходный текст
Ответ на Re: issue with an assembled date field  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
ho Tom,

 Thanks that gave me the brain burp I needed to click into what was
causing the root issue.

On Fri, 2008-02-29 at 13:47 -0500, Tom Lane wrote:
> Chris Bowlby <excalibur@accesswave.ca> writes:
> >  I am converting an encoded field (lot_id) into a date field, the 5
> > character of every lot_id is always the year and as such I need to
> > extract the year using the following function:
> >  substring(ilch.lot_id::text, 5, 1)
>
> Well, I'd say that the failure proves that some of your data does
> *not* have the year in the fifth character.
>
> > ERROR:  invalid input syntax for type date: "01/01/0W"
>
> Time for some data sanitizing?
>
>             regards, tom lane

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

Предыдущее
От: Richard Huxton
Дата:
Сообщение: Re: Insert vs Update syntax
Следующее
От: Carl McCalla
Дата:
Сообщение: Removing Users and Revoking Privileges