Re: [GENERAL] embedded sql pointer to structure question

2001-03-19 Thread Michael Meskes
On Fri, Mar 16, 2001 at 09:51:20PM +0100, Feite Brekeveld wrote: > If I do that ( tried that already ) I get an eror message: > > pmr is not a pointer > > at the point where I reference to it in the query: > ... Please read my mail completely: > > This should work. But be sure to

Re: [GENERAL] embedded sql pointer to structure question

2001-03-16 Thread Michael Meskes
On Fri, Mar 16, 2001 at 12:58:06PM +0100, Feite Brekeveld wrote: > ... > Exec sql begin declare section; >MYREC *pmr = &mr; > > exec sql end declare section; > ... > I get the message :ERROR: The variable id is not declared > ... Yes, this is a known limintation. It's even listed

[GENERAL] embedded sql pointer to structure question

2001-03-16 Thread Feite Brekeveld
Hi, I have an application using structures say typedef struct { int id; char value[40]; } MYREC; When passing a record to a function insert_record( MYREC *pmyrec) how to deal with the sql-statement regarding the fields of the struct ? When doing this (TESTPROGRAM) : exec sql whenever