Re: ESQL/C question
Posted in 1998
Johan den Boer — — source: Informix-list mailing list archive (1991-1998)
KPonn wrote: > Hi > > I am trying to fetch a Decimal(16,4) field into Some_variable with Indicator. I > am getting error -1223 > > Ex: Fetch sel_cur into :x indicator :y > > In C, what type should x (double, float, int etc ????) be ? Can I use > Indicator variables for decimal fields ? > > Thanks for your help. Yes you can. You should use type double for decimal(16,4) and type short for indicator variables. example $begin declare section; double f_money; short i_money; $end declare section;