Re: $ and EXEC SQL keywords difference in typedef
Posted in 1998
Irina Kotlova wrote: >Hello, > >I've discovered a little difference in "$" and "EXEC SQL" behavior while >using typedef. >If I use >$typedef struct { > char currency[4]; > double value; > } crossrate; >then all is OK, but when I try ANSI standard: >EXEC SQL typedef struct { > char currency[4]; > double value; > } crossrate; >then I receive the warning: >line 8: Warning -33051: Syntax error on identifier or symbol 'EXEC SQL'. You could try to rewrite the section above as: EXEC SQL BEGIN DECLARE SECTION; typedef struct { char currency[4]; double value; } crossrate; EXEC SQL END DECLARE SECTION; I didn't check this. Best Regards, Octav -- Octav Chiriac Phone: (373) 2 21 20 96 NetInfo S.R.L. Fax: (373) 2 21 36 59 Chisinau (373) 2 24 00 83 Moldova, Republic of mailto:com@netinfo-moldova.com