home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / database / 5862 < prev    next >
Encoding:
Text File  |  1992-07-31  |  1.0 KB  |  39 lines

  1. Newsgroups: comp.databases
  2. Path: sparky!uunet!taipei.rs.com!shiv@rs.com
  3. From: shiv@rs.com (Shiv)
  4. Subject: Sybase DBLibrary error/bug -- Need help
  5. Message-ID: <1992Jul31.101424.11193@rs.com>
  6. Sender: news@rs.com (USENET News System)
  7. Reply-To: shiv@rs.com
  8. Organization: Renaissance Software, Inc.
  9. Date: Fri, 31 Jul 1992 10:14:24 PDT
  10. Lines: 27
  11.  
  12. There is a serious problem I encountered in the DB-Library C code.
  13.  
  14. Consider the following code segment:
  15.  
  16. dbcmd("insert into tmptable values ("The interest rate is 15%"));
  17. dbsqlexec(dbproc);
  18.  
  19.  
  20.  
  21.  
  22.  
  23.  
  24. Problem: 
  25. dbsqlexec gives an error or segmentation fault sometimes whenever there is
  26. a '%' in the data to be inserted (for varchar datatypes, in my case). Even
  27. '\%' does not help. The behaviour of dbsqlexec is unpredictable in such
  28. situations. Any workaround/solution?
  29.  
  30. Thanx in advance.
  31. ---
  32. Shiv                      | Tel: (415) 856-8000
  33. Software Engineer         | FAX: (415) 941-8943 
  34. Renaissance Software Inc. | email: shiv@rs.com 
  35. 175 S. San Antonio Road   | 
  36. Los Altos, CA 94022       |
  37.  
  38.  
  39.