| От | Carmen Gloria Sepulveda Dedes |
|---|---|
| Тема | Problem with exec sql include |
| Дата | |
| Msg-id | 3FBB79B5.DF10D916@atichile.com обсуждение исходный текст |
| Ответы |
Re: Problem with exec sql include
|
| Список | pgsql-general |
Hello.
I have a 2 files: test.h and test.pgc.
In test.h, I defined:
typedef struct {
long curid;
char curnombre[20];
char curfecha[10];
} struct_cursor;
And, in test.pgc, I want to declare:
EXEC SQL BEGIN DECLARE SECTION;
struct_cursor t_cursor;
EXEC SQL END DECLARE SECTION;
But, when I do: ecpg -I/<include_file_path> test.pgc,
I get: test.pgc:7: ERROR: invalid datatype 'struct_cursor'
I know that I can include the typedef at DECLARE SECTION, but I don't
want to use that (test.h and test.pgc are only examples of the problem
bigest).
How can I resolve this?
Thanks.
CG
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера