Re: writing backend extensions using Visual Studio
В списке pgsql-hackers-win32 по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: writing backend extensions using Visual Studio |
| Дата | |
| Msg-id | 15980.1111791427@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | writing backend extensions using Visual Studio (Greg Landrum <greg.landrum@gmail.com>) |
| Ответы |
Re: writing backend extensions using Visual Studio
|
| Список | pgsql-hackers-win32 |
Greg Landrum <greg.landrum@gmail.com> writes:
> After playing around for a while, I managed to get a DLL to build and
> work at least far enough that I can CREATE and call the functions from
> psql. However, it looks like every argument I pass into the functions
> comes in as null (e.g. PG_ARGISNULL returns true). This clearly is
> less than helpful. :-)
Sounds like MSVC is interpreting the layout of the FunctionCallInfo
struct differently than the MinGW compiler did. You should probably
look into whether there are "pragma pack" directives lurking in your
program. ("pragma pack" is evil...)
regards, tom lane
В списке pgsql-hackers-win32 по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера