| От | PG Doc comments form |
|---|---|
| Тема | Example code bug: destination->data |
| Дата | |
| Msg-id | 166786713708.652.15395196776183543224@wrigleys.postgresql.org обсуждение исходный текст |
| Ответы |
Re: Example code bug: destination->data
|
| Список | pgsql-docs |
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 following error: error: ‘text’ {aka ‘struct varlena’} has no member named ‘data’ After tracking down the struct definition, I got the example working with: destination->vl_dat instead. I assume this is correct, and that the member name changed somewhere along the way. -- Ray Brinzer
В списке pgsql-docs по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера