Re: Example code bug: destination->data

2022-11-08 Thread Tom Lane
PG Doc comments form writes: > 38.10.2. Base Types in C-Language Functions > In the last example of the section, this line appears: > memcpy(destination->data, buffer, 40); > For me, this gave the following error: > error: ‘text’ {aka ‘struct varlena’} has no member named ‘data’ > After tracking

Example code bug: destination->data

2022-11-08 Thread PG Doc comments form
The following documentation comment has been logged on the website: Page: https://www.postgresql.org/docs/15/xfunc-c.html Description: 38.10.2. Base Types in C-Language Functions In the last example of the section, this line appears: memcpy(destination->data, buffer, 40); For me, this gave the