Firebird SQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesFirebird SQL Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old July 14th, 2006, 06:51 AM
punsamlove punsamlove is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2006
Posts: 3 punsamlove User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 36 m 35 sec
Reputation Power: 0
Question Different values computed from the ones that are commited ???

In debug mode I have traced step by step every line and there I have got the values that I need. But when the update of the record has been done, different values has been updated then the ones I have got in the debug mode.

How can I correct that and what did happen with those records ?

Reply With Quote
  #2  
Old July 14th, 2006, 07:27 AM
pabloj's Avatar
pabloj pabloj is offline
Modding: Oracle MsSQL Firebird
Dev Shed God 6th Plane (7500 - 7999 posts)
 
Join Date: Jun 2001
Location: Outside US
Posts: 7,917 pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level) 
Time spent in forums: 2 Months 3 Weeks 3 Days 14 h 31 m 53 sec
Reputation Power: 279
Have your program output the actual insert/update query just before issueing it to database and check that one.

Reply With Quote
  #3  
Old July 17th, 2006, 01:15 AM
punsamlove punsamlove is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2006
Posts: 3 punsamlove User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 36 m 35 sec
Reputation Power: 0
Arrow I haven't give you enough information...

Quote:
Originally Posted by pabloj
Have your program output the actual insert/update query just before issueing it to database and check that one.


Thanks for helping me, but here is a larger explanation.
I have one of many stored procedures in which this has happened.
Three local variables (L_neto,L_bruto,L_minrad) are computed correctly (8222, 11666, 1456) but when I do this in the procedure

update table_name
set neto = :L_neto,
bruto = :L_bruto,
minrad = :L_minrad
where /*condition for update*/

then in the table are updated wrong values (8202, 11637, 1432).

This is the only update or insert part of all procedures for this table. If I omit this update then inital values are set to 0 and everything is OK. I have to do this update 250 times for different input parameters, and this doesn't happen for every 250 records but only for some.

I hope you understood me now, and once again thans for helping me.

What could I do ?

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesFirebird SQL Development > Different values computed from the ones that are commited ???


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway
Stay green...Green IT