Re: Casting, again

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Casting, again
Дата
Msg-id 27087.958403845@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Casting, again  (Thomas Lockhart <lockhart@alumni.caltech.edu>)
Список pgsql-hackers
Thomas Lockhart <lockhart@alumni.caltech.edu> writes:
> btw, what were we hoping to accomplish with length(755)? Why isn't "3"
> a good answer??

If you believe it should have an answer at all, then 3 is probably
the right answer.  But it used to be rejected, and I tend to think
that that's the right behavior.  I don't like the idea of silent
conversions from numeric-looking things into text.  It might be
merely amusing in this case but in other cases it could be very
confusing if not outright wrong.  Why was this change put in?
        regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: AW: type conversion discussion
Следующее
От: Hannu Krosing
Дата:
Сообщение: Re: Proposal: replace no-overwrite with Berkeley DB