Re: [GENERAL] Problem with exec sql include

2003-11-19 Thread Michael Meskes
On Wed, Nov 19, 2003 at 12:26:07PM -0300, Carmen Gloria Sepulveda Dedes wrote: > In the test.pgc file, I do: > >EXEC SQL BEGIN DECLARE SECTION; > exec sql include test; > struct_cursor t_cursor; >EXEC SQL END DECLARE SECTION; > > ... and it works fine. It is correct

Re: [GENERAL] Problem with exec sql include

2003-11-19 Thread Carmen Gloria Sepulveda Dedes
Thanks for you suggestion. In the test.pgc file, I do: EXEC SQL BEGIN DECLARE SECTION; exec sql include test; struct_cursor t_cursor; EXEC SQL END DECLARE SECTION; ... and it works fine. It is correct Thank you again. CG > ECPG does not parse anything outside EXEC

Re: [GENERAL] Problem with exec sql include

2003-11-19 Thread Michael Meskes
On Wed, Nov 19, 2003 at 11:09:58AM -0300, Carmen Gloria Sepulveda Dedes wrote: > 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 ECPG does not parse anything outside EXEC SQL blocks, so how else should i

[GENERAL] Problem with exec sql include

2003-11-19 Thread Carmen Gloria Sepulveda Dedes
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 SQ