home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / database / oracle / 2661 < prev    next >
Encoding:
Text File  |  1992-12-30  |  1.8 KB  |  50 lines

  1. Newsgroups: comp.databases.oracle
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!rpi!newsserver.pixel.kodak.com!kodak!tempus!deal
  3. From: deal@tempus.Kodak.Com (Stephen M. Deal)
  4. Subject: Why doesn't Pro*C support structures?
  5. Message-ID: <1992Dec31.011634.25927@kodak.kodak.com>
  6. Sender: deal@tempus (Stephen M. Deal)
  7. Reply-To: deal@Kodak.COM
  8. Organization: Eastman Kodak Company
  9. References: <1992Dec30.054617.3077@kodak.kodak.com> <1992Dec30.183813.29783@tigger.jvnc.net>
  10. Distribution: na
  11. Date: Thu, 31 Dec 92 01:16:34 GMT
  12. Lines: 36
  13.  
  14. In article <1992Dec30.183813.29783@tigger.jvnc.net>,
  15. fogelinc@nmr1.Cyanamid.COM (Carl Fogelin) writes:
  16. |> I hate to tell you this Steve, but PRO*C does not support the use of
  17. |> structures.
  18. |> It states on page 1-6 of the PRO*C Supplement (V1.3)
  19. |> 
  20. |>    You cannot declare a host variable of type struct.  Nor can you
  21. |> refer
  22. |>    to any of the following:
  23. |> 
  24. |>        - names declared in typedef statements
  25. |>        - symbolic constants named by the #define directive
  26. |>        - previously declared structs
  27. |> 
  28. |> I know it stinks, especially since VARCHARs are structs, but that's
  29. |> the way
  30. |> it is.   :-(
  31. |> 
  32. |> Carl
  33.  
  34. Thanks Carl, and to others who Emailed a similar response.
  35.  
  36. Boy that really does stink! Acckkk  Pbbttt!
  37.  
  38. Competitive products (e.g. INGRES) don't have any such constraints. Fetching
  39. into a structure seems to be the most natural approach for mapping relational
  40. sets of data into a 3GL. What I was really looking to do is to
  41. dynamically allocate an array of struct but I guess that's beyond hope.
  42.  
  43. Does anyone know if this constraint self-imposed or does Oracle hide
  44. behind the ANSI-SQL definition as the rational for this limitation?
  45.  
  46. Steve
  47. -- 
  48.     Disclaimer:    "Everyone is entitled to an opinion, 
  49.          the above is mine and not that of my employer."
  50.