Re: [HACKERS] Modifing returning value of PQgetvalue.

2017-06-26 Thread Tom Lane
Peter Eisentraut writes: > On 6/24/17 06:31, Dmitry Igrishin wrote: >> 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 poi

Re: [HACKERS] Modifing returning value of PQgetvalue.

2017-06-26 Thread Peter Eisentraut
On 6/24/17 06:31, Dmitry Igrishin wrote: > 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 s

[HACKERS] Modifing returning value of PQgetvalue.

2017-06-24 Thread Dmitry Igrishin
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 modi