home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / next / programm / 5272 < prev    next >
Encoding:
Text File  |  1992-07-27  |  1.5 KB  |  32 lines

  1. Newsgroups: comp.sys.next.programmer
  2. Path: sparky!uunet!cis.ohio-state.edu!pacific.mps.ohio-state.edu!linac!uchinews!news
  3. From: colin@agincourt.bsd.uchicago.edu (& Garrett)
  4. Subject: DBKit: updating key fields
  5. Message-ID: <1992Jul28.002103.29635@midway.uchicago.edu>
  6. Sender: news@uchinews.uchicago.edu (News System)
  7. Organization: University of Chicago Computing Organizations
  8. Date: Tue, 28 Jul 1992 00:21:03 GMT
  9. Lines: 21
  10.  
  11. It would appear that one can't update key fields.  When I change non-key  
  12. fields and then save changes, the sybase table is updated correctly.  When  
  13. I try to save changes that include changes for properties marked as key, I  
  14. get "Error occured during transaction."
  15. It would appear, quite simply, that DBKit builds the where clause of the  
  16. update statement from the current (changed) values of the key fields  
  17. rather than from their original values.
  18.    - The key for this particular table is a five field key.  If I change  
  19. my Model to make one of the key properties non-key, I can then update that  
  20. field (as long as I don't change any of the remaining key fields, so it  
  21. can still find the original row).
  22.    - I can even edit _all_ the key fields so that the row has the same key  
  23. as another row in the table, so that when I try to save I get "al_appt  
  24. record has been modified in the database since the last fetch." instead.   
  25. I think that's proof positive.
  26.  
  27. This is a complete disaster.  Any ideas?  Any knowledge of plans to fix  
  28. this?
  29.  
  30. Colin Garrett
  31. colin@delphi.bsd.uchicago.edu (NeXTMail)
  32.