Change atoi to strtol in same place

Поиск
Список
Период
Сортировка
От Surafel Temesgen
Тема Change atoi to strtol in same place
Дата
Msg-id CALAY4q8be6Qw_2J=zOp_v1X-zfMBzvVMkAfmMYv=Ukr=2hPcFQ@mail.gmail.com
обсуждение исходный текст
Ответы Re: Change atoi to strtol in same place  (Tomas Vondra <tomas.vondra@2ndquadrant.com>)
Список pgsql-hackers
Hello,

we use atoi for user argument processing in same place which return zero for both invalid input and input value zero. In most case its ok because we error out with appropriate error message for input zero but in same place where we accept zero as valued input it case a problem by preceding for invalid input as input value zero. The attached patch change those place to strtol which can handle invalid input

regards

Surafel

Вложения

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

Предыдущее
От: Nikita Glukhov
Дата:
Сообщение: Re: [PATCH] kNN for btree
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: [PATCH] get rid of StdRdOptions, use individual binaryreloptions representation for each relation kind instead