rahul.kolhe22
30th January 2009, 12:01
Hi,
I am trying to trace one of the old code in which I came across the condition as shown below
...
db.retry.point()
select table1fields.*
from table1
where condition
selectdo
...
...
commit.transaction()
selecteos
...
...
commit.transaction()
endselect
db.retry.point()
select table2fields.*
from table2
where condition
selectdo
...
...
endselect
if no.error then
commit.transaction()
else
abort.transaction()
endif
Here when the first db.retry.point is been set, the control never goes in the first selectdo clause neither in selecteos. So nethier the commit nor the abort transaction is been executed.
After that other db.retry.point is been set. As far as I know we cannot set 2 db.retry.point without commiting or aborting the previous retry point.
Also the code I am tracing is very old and is in use and frequently executed, so there are no chances that it may be a bug.
Can anyone please let me know whether there is any variable or some debugger command or something similar using which I can know on execution of which statement the first db.retry.point is been unset/removed.
Any suggestions are welcomed.
Thanks in advance.
--Rahul
I am trying to trace one of the old code in which I came across the condition as shown below
...
db.retry.point()
select table1fields.*
from table1
where condition
selectdo
...
...
commit.transaction()
selecteos
...
...
commit.transaction()
endselect
db.retry.point()
select table2fields.*
from table2
where condition
selectdo
...
...
endselect
if no.error then
commit.transaction()
else
abort.transaction()
endif
Here when the first db.retry.point is been set, the control never goes in the first selectdo clause neither in selecteos. So nethier the commit nor the abort transaction is been executed.
After that other db.retry.point is been set. As far as I know we cannot set 2 db.retry.point without commiting or aborting the previous retry point.
Also the code I am tracing is very old and is in use and frequently executed, so there are no chances that it may be a bug.
Can anyone please let me know whether there is any variable or some debugger command or something similar using which I can know on execution of which statement the first db.retry.point is been unset/removed.
Any suggestions are welcomed.
Thanks in advance.
--Rahul