Re: casting zero-length strings

Поиск
Список
Период
Сортировка
От Christopher Kings-Lynne
Тема Re: casting zero-length strings
Дата
Msg-id 4031A0B3.3010502@familyhealth.com.au
обсуждение исходный текст
Ответ на Re: casting zero-length strings  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: casting zero-length strings  (Neil Conway <neilc@samurai.com>)
Список pgsql-hackers
> Yes, surely, unless someone wants to argue for reverting that change
> to pg_atoi.  I can't see a reason for having them act inconsistently.
> 
> While we are at it we should make sure these functions are all on the
> same page about allowing leading/trailing whitespace.  I seem to recall
> that the spec says somewhere that both should be allowed ... but right
> now I do not think we allow trailing whitespace.

Either way, we should make them a WARNING for 7.5, then error in 7.6. 
The pg_atoi change was a bit disastrous because of instant error I thought.

Chris



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: casting zero-length strings
Следующее
От: "Simon Riggs"
Дата:
Сообщение: Re: No Timeout in SELECT..FOR UPDATE