age() and DateStyle ISO

Поиск
Список
Период
Сортировка
От Frank Bax
Тема age() and DateStyle ISO
Дата
Msg-id 3.0.6.32.20020223125705.0205a100@pop6.sympatico.ca
обсуждение исходный текст
Список pgsql-general
In an obscure part of my app that I haven't touched in many moons, I found
some code that contains:
    SET DateStyle = 'ISO'
and then a SELECT age(timestamp,timestamp) from ...

In my php code I then tested
     if ( strcmp( $row->age, "14 00:00" ) )
Sometime between 6.5.x [when the code was written] and 7.1 [current level]
the results from age() changed from "14 00:00" to "14 days"?  I notice the
columns are now defined as 'timestamp with timezone' which was probably
automatic as part of one upgrade on another (they were simply 'timestamp'
in 6.5 as I recall).

Did the standard change?  Was it never applicable to intervals?

Frank

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

Предыдущее
От: tony
Дата:
Сообщение: Re: permissions
Следующее
От: Doug McNaught
Дата:
Сообщение: Re: permissions