Adding structure members into table using Pro*C
Date: Mon, 4 Oct 1993 17:22:48 GMT
Message-ID: <CEDuy1.10GM_at_hawnews.watson.ibm.com>
Would appreciate if anyone could recommend a good way of using structure members within a Pro*C program.
Right now the program receives a pointer to a structure. It is supposed to put the structure values - which incidentally exactly matches the table layout - into the table.
Currently I have implemented a pointer solution, where only pointers exist in the BEGIN DECLARE SECTION. However I do not like to have to assign every pointer to its proper value in the structure - there are quite a lot of table columns/structure members and quite a lot of assignments.
Further I do not know how portable pointer host variables are.
Does anyone know of a convenient way to get the structure into the table more easily than how it is currently implemented?
Regards
/Johan Hellstrom Received on Mon Oct 04 1993 - 18:22:48 CET