home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / database / oracle / 1405 < prev    next >
Encoding:
Internet Message Format  |  1992-08-27  |  1.3 KB

  1. Path: sparky!uunet!gatech!destroyer!sol.ctr.columbia.edu!The-Star.honeywell.com!umn.edu!noc.msc.net!uc.msc.edu!shamash!ems!ems.cdc.com!pveltkam
  2. From: pveltkam@ems.cdc.com (Paula Veltkamp)
  3. Newsgroups: comp.databases.oracle
  4. Subject: Re: Can Dynamic SQL handle NUMBER datatype without precision and scale.
  5. Message-ID: <21427@nntp_server.ems.cdc.com>
  6. Date: 27 Aug 92 18:26:11 GMT
  7. References: <1992Aug4.164432.12930@unixg.ubc.ca> <1992Aug13.030611.1@us.oracle.com>
  8. Sender: sys@ems.ems.cdc.com
  9. Reply-To: pveltkam@ems.cdc.com
  10. Organization: Empros Systems International, a division of CDC
  11. Lines: 16
  12. Nntp-Posting-Host: ajax.ems.cdc.com
  13.  
  14. Hi,
  15.  
  16. I've written a PRO*C program which uses dynamic sql. The purpose of the program
  17. is to export data out of the database using selects created from existing .ctl
  18. files.  I'm using ORACLE version 6.0.31. and PRO*C version 1.3.
  19.  
  20. Apparently, dynamic sql can't handle NUMBER datatypes without a precision
  21. and scale defined.  The datatype value (sdp->T[i]) comes back as a CHAR 
  22. value and the Length (sdp->L[i]) is set to 0.
  23. I've gotten around the problem of having the program crash when
  24. it tries to allocate memory for the sdp->V[i] value by setting the sdp->L[i]
  25. value to the character byte size. However, I get no data back.
  26.  
  27. Anybody know I can retrieve the data?
  28.  
  29. Paula
  30.