Re: [BUGS] BUG #4862: different results in to_date() between 8.3.7 & 8.4.RC1

Поиск
Список
Период
Сортировка
От Brendan Jurd
Тема Re: [BUGS] BUG #4862: different results in to_date() between 8.3.7 & 8.4.RC1
Дата
Msg-id 37ed240d0906240238n43e84b4du2f686bc6d2947b6b@mail.gmail.com
обсуждение исходный текст
Ответ на Re: [BUGS] BUG #4862: different results in to_date() between 8.3.7 & 8.4.RC1  (Brendan Jurd <direvus@gmail.com>)
Список pgsql-hackers
2009/6/24 Jeremy Ford <jeremford@gmail.com>:
> I've just compiled and run the 8.4.RC2 code. For both of the following
> queries I get "0009-03-01"
>
> SELECT to_date(' 2009 03', '  YYYY MM') as extraspace; --returns
> "0009-03-01"
> SELECT to_date('2009 03', ' YYYY MM') as bogusspace; --returns "0009-03-01"
>
> Was it the intention to imitate Oracle behavior for these two cases in this
> release? (8.3.7 returns "0009-03-01" as well)

I think, at this stage (so close to release) we're just trying to keep
up a reasonable compatibility with 8.3 and earlier.  The fact that the
"bogus space" case doesn't match the Oracle behaviour might be fertile
ground for future improvement in the 8.5 cycle.

Thanks for testing!

Cheers,
BJ


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

Предыдущее
От: Dimitri Fontaine
Дата:
Сообщение: Re: Extensions User Design
Следующее
От: Boszormenyi Zoltan
Дата:
Сообщение: ECPG dynamic cursor, SQLDA support