home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.databases.oracle
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!rpi!newsserver.pixel.kodak.com!kodak!tempus!deal
- From: deal@tempus.Kodak.Com (Stephen M. Deal)
- Subject: Why doesn't Pro*C support structures?
- Message-ID: <1992Dec31.011634.25927@kodak.kodak.com>
- Sender: deal@tempus (Stephen M. Deal)
- Reply-To: deal@Kodak.COM
- Organization: Eastman Kodak Company
- References: <1992Dec30.054617.3077@kodak.kodak.com> <1992Dec30.183813.29783@tigger.jvnc.net>
- Distribution: na
- Date: Thu, 31 Dec 92 01:16:34 GMT
- Lines: 36
-
- In article <1992Dec30.183813.29783@tigger.jvnc.net>,
- fogelinc@nmr1.Cyanamid.COM (Carl Fogelin) writes:
- |> 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
-
- Thanks Carl, and to others who Emailed a similar response.
-
- Boy that really does stink! Acckkk Pbbttt!
-
- Competitive products (e.g. INGRES) don't have any such constraints. Fetching
- into a structure seems to be the most natural approach for mapping relational
- sets of data into a 3GL. What I was really looking to do is to
- dynamically allocate an array of struct but I guess that's beyond hope.
-
- Does anyone know if this constraint self-imposed or does Oracle hide
- behind the ANSI-SQL definition as the rational for this limitation?
-
- Steve
- --
- Disclaimer: "Everyone is entitled to an opinion,
- the above is mine and not that of my employer."
-