[HACKERS] Modifing returning value of PQgetvalue.

Поиск
Список
Период
Сортировка
От Dmitry Igrishin
Тема [HACKERS] Modifing returning value of PQgetvalue.
Дата
Msg-id CAAfz9KO_yfJ96EknhfMPCqAq8+1m9m9k4DJrAnAUMBEWGJpOxg@mail.gmail.com
обсуждение исходный текст
Ответы Re: [HACKERS] Modifing returning value of PQgetvalue.  (Peter Eisentraut <peter.eisentraut@2ndquadrant.com>)
Список pgsql-hackers
Hello,

PQgetvalue returns a value of type char* (without const). But the documentation says:
"The pointer returned by PQgetvalue points to storage that is part of the PGresult structure. One should not modify the data it points to" (my italics). Could someone tell me please, what wrong with modifing arbitrary character of the data pointed by PQgetvalue's returning value? Or why this restriction is documented? Thanks.

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [HACKERS] FIPS mode?
Следующее
От: Simon Riggs
Дата:
Сообщение: Re: [HACKERS] Fix a typo in snapmgr.c