Re: timestamp out of range while casting return value to function's return type
В списке pgsql-general по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: timestamp out of range while casting return value to function's return type |
| Дата | |
| Msg-id | 27502.1566609034@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | timestamp out of range while casting return value to function'sreturn type (Thiemo Kellner <thiemo@gelassene-pferde.biz>) |
| Ответы |
Re: timestamp out of range while casting return value to function'sreturn type
|
| Список | pgsql-general |
Thiemo Kellner <thiemo@gelassene-pferde.biz> writes:
> I created a function that ought to return a timestamptz (another
> likewise timestamp) but calling it, I get mentionied error. What do I
> miss?
Whether that:
> return '294277-01-01 00:59:59.999999'::timestamptz;
is in range or not depends on your timezone setting. It would
be considered in-range in UTC+1 or further east (so that the date
wraps back to 294276AD); in or west of Greenwich, not so much.
> I tried to return a timestamp of the year 2000 to no avail.
Hardly ...
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера