Re: ? How do I declare a structure...

From: Carl Fogelin <fogelinc_at_nmr1.Cyanamid.COM>
Date: Wed, 30 Dec 1992 18:38:13 GMT
Message-ID: <1992Dec30.183813.29783_at_tigger.jvnc.net>


In article 3077_at_kodak.kodak.com, deal_at_tempus.Kodak.Com (Stephen M. Deal) writes:
>
>I don't have my manuals with me (I'm at home) and I am trying to get
>some embedded SQL C code (a.k.a. Pro*C) to precompile. I am not sure
>that the manuals would answer this one anyway so I have turned to the
>net for help.
>
>I have declared a structure into which a record should be retrieved:

I hate to tell you this Steve, but PRO*C does not support the use of structures. It states on page 1-6 of the PRO*C Supplement (V1.3)

   You cannot declare a host variable of type struct. Nor can you refer    to any of the following:

  • names declared in typedef statements
  • symbolic constants named by the #define directive
  • previously declared structs

I know it stinks, especially since VARCHARs are structs, but that's the way it is. :-(

Carl



 Carl Fogelin (fogelinc_at_cyanamid.com) "All opinions are strictly mine"    "Sushi! That's what my ex-wife called me. Cold fish." -- Blade Runner Received on Wed Dec 30 1992 - 19:38:13 CET

Original text of this message