FETCHING into a struct in C

From: Atif Jung <atifjung(at)gmail(dot)com>
To: pgsql-novice(at)postgresql(dot)org
Subject: FETCHING into a struct in C
Date: 2010-05-05 15:54:29
Message-ID: s2rd1c6b9c51005050854m588b47c7n59c05e93f0216fd@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Browse pgsql-novice by date

  From Date Subject
Next Message Torralba, Jorge 2010-05-05 23:22:40 superuser lacking privs
Previous Message Shoaib Mir 2010-05-05 05:51:06 Re: Autovacuum working / not working ?