FETCHING into a struct in C - Mailing list pgsql-novice

From Atif Jung
Subject FETCHING into a struct in C
Date
Msg-id s2rd1c6b9c51005050854m588b47c7n59c05e93f0216fd@mail.gmail.com
Whole thread Raw
List pgsql-novice
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

pgsql-novice by date:

Previous
From: Shoaib Mir
Date:
Subject: Re: Autovacuum working / not working ?
Next
From: "Urs Rau (UK)"
Date:
Subject: Re: how to continue after error in batch mode with psql