If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Informix > sometimes UPDATE is not working ?!?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-10-06, 09:37
erik1975 erik1975 is offline
Registered User
 
Join Date: Jul 2005
Location: Graz / AUT
Posts: 9
Red face sometimes UPDATE is not working ?!?

hi,

i have following problem with this code on a new server:

...
LET p.id = 0 # is INTEGER
LET p.unid = 0 # is a SERIAL

INSERT INTO mytable VALUES (p.*)

LET s_id = SQLCA.SQLERRD[2]

UPDATE mytable SET id = unid WHERE unid = s_id

the code above is working correctly about 2 - 4 times (in a loop), after that
the UPDATE makes nothing (without any messages or abort !!!) so that
"id" is always 0 !!!

my system: IDS 7.31.UC4 on SCO OpenServer 6 (it was working fine with
OpenServer 5.0.5)

does anyone have similar problems (perhaps solved) ?
any hints for me ?
PLEASE HELP !!!


Thanks
Erik
Reply With Quote
  #2 (permalink)  
Old 01-11-06, 06:37
gurey gurey is offline
Registered User
 
Join Date: Aug 2003
Location: Argentina
Posts: 780
Hi Erik,

You work with logging database, please test the transaction process.
I think that the problem is the handle of transaction.

Gustavo.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On