Обсуждение: FETCHING into a struct in C

Поиск
Список
Период
Сортировка

FETCHING into a struct in C

От
Atif Jung
Дата:
I have the following code:
 
EXEC SQL BEGIN DECLARE SECTION;
 
struct MVT {
  char acMRT[6];
  int iOrdering;
  char acReply[2];
  char acValidate[5];
};
 
EXEC SQL END DECLARE SECTION;
 
EXEC SQL FETCH c_prep_cursor INTO :stMVTL;
 
Is this allowed in POSTGRES or do I need to expand out the struct? Also would I need to declare indicators for each of the elements in the structure?
 
Thanks
 

Atif