I'm trying to retrieve a blob using ANSI Dynamic SQL in a Pro*C application.
However, when I attempt to use FETCH DESCRIPTOR I get a segmentation fault.
The precompiler picks up if the fetch size and the output structure size
don't match, but it seems that they don't actually match according to the
rtype = 113;
rsize = GAMMA_CHANNELS*4;
EXEC SQL SET DESCRIPTOR :out_desc VALUE :occurs
TYPE = :rtype,
LENGTH = :rsize,
REF DATA = :correctedinb,
REF INDICATOR = :spectrumind;
EXEC SQL FETCH g INTO DESCRIPTOR :out_desc;