home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / database / informix / 2878 < prev    next >
Encoding:
Internet Message Format  |  1993-01-06  |  1.5 KB

  1. Path: sparky!uunet!europa.asd.contel.com!emory!emory!not-for-mail
  2. From: rridley@sin-pss.DHL.COM (Richard Ridley)
  3. Newsgroups: comp.databases.informix
  4. Subject: RE: UPDATE problem on UNIQUE constraint
  5. Date: 6 Jan 1993 22:23:04 -0500
  6. Organization: Mailing List Gateway
  7. Lines: 37
  8. Sender: walt@mathcs.emory.edu
  9. Distribution: world
  10. Message-ID: <1ig7moINN978@emory.mathcs.emory.edu>
  11. Reply-To: rridley@sin-pss.DHL.COM (Richard Ridley)
  12. NNTP-Posting-Host: emory.mathcs.emory.edu
  13. X-Informix-List-ID: <list.1755>
  14.  
  15.  
  16. %UNIPLEX
  17. %TO            informix-list@rmy.emory.edu
  18. %FROM          rridley
  19. %SYSTEM        DHLNET
  20. %SUBJECT       RE: UPDATE problem on UNIQUE constraint
  21. %VERIFY        y
  22. %DATE          07/01/93 10:28
  23. %REFERENCE     10661
  24.  
  25. Pedro Freire writes :
  26.  
  27. >When the statement is executed, it proceeds by looking up the first
  28. >row that satisfies the condition, updating it and then repeats the process
  29. >with the next row and so on, until there are no more rows to update.
  30. >The question is that, when updating a row that has c_int_art = P and row P+1
  31. >exists and hasn't been updated (yet), after the update you'll have 2
  32. >rows P+1 and that violates the UNIQUE INDEX constraint, which causes
  33. >the statement (and the program) to be aborted with the following error message:
  34.  
  35. >"Could not update a row in the table"
  36. >SQL -346
  37. >ISAM -100
  38.  
  39. Which version of Online are you running ?
  40.  
  41. According to the 4.1 Online Enhancements documentation, effective
  42. checking of unique constraints is implemented from 4.1.
  43.  
  44. This should solve your problem.
  45.  
  46. Cheers,
  47.  
  48. Richard Ridley
  49.  
  50. DHL Asia Pacific
  51. %UEND
  52.