Re: Meridiem markers (was: [BUGS] Incorrect "invalid AM/PM string" error from to_timestamp)
В списке pgsql-hackers по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: Meridiem markers (was: [BUGS] Incorrect "invalid AM/PM string" error from to_timestamp) |
| Дата | |
| Msg-id | 5549.1233029113@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: Meridiem markers (was: [BUGS] Incorrect "invalid AM/PM string" error from to_timestamp) (Brendan Jurd <direvus@gmail.com>) |
| Ответы |
Re: Meridiem markers (was: [BUGS] Incorrect "invalid AM/PM string"
error from to_timestamp)
|
| Список | pgsql-hackers |
Brendan Jurd <direvus@gmail.com> writes:
> A quick grep through the backend code shows that strlcpy and strncpy
> are both in use, with neither having a clear majority. I used strncpy
> because it is more prevalent within src/backend/utils/adt.
strncpy is generally deprecated; any remaining uses you find of it
are probably only there for lack of round tuits. Use strlcpy in new
code, unless there's a pretty strong argument that strncpy is actually
clearer for a given usage.
(No, it's not a portability issue, because we have our own copy for
platforms without it; see src/port/.)
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера