Hi,
I'm using Progress 9.1E database in Sun Solaris.
I encountered a situation which I cannot explain, why it happened. There is a program code looking like this (simplified somehow):
The problem occurs whenever I press F10 twice within one second. Table2 has a primary (but not unique) index including the date and time fields. In the first case table1.status is "A", so status will be set to "B", then pressing F10 second time will set the status to "C". The problem is with table2, because the two new records should be created in this order:
02/15/2012 11:45:02 abcRE
02/15/2012 11:45:02 abcIR
But I made the program select table content to a log file after it created table2 records, and the result is as follows:
select *
from table2
02/15/2012 11:45:02 abcRE
select *
from table2
02/15/2012 11:45:02 abcIR
02/15/2012 11:45:02 abcRE
So it seems in the first case table2 record was created (with "abcRE"), then in the second case the new table2 record (with "abcIR") got created as if it would have recorded earlier. Any idea how it can occur that the record created later is the first and not the second one in the table?
Regards,
Peter
I'm using Progress 9.1E database in Sun Solaris.
I encountered a situation which I cannot explain, why it happened. There is a program code looking like this (simplified somehow):
Code:
ON "F10" OF query DO
:
IF table1.status = "B" THEN
DO:
table1.status = "C".
DO:
CREATE t_table2.
ASSIGN
table2.date = DATE
table2.time = TIME
table2.text = "abcIR".
RELEASE table2.
RELEASE table1.
END.
END.
ELSE IF table1.status = "A" THEN
DO:
table1.status = "B".
DO:
CREATE t_table2.
ASSIGN
table2.date = DATE
table2.time = TIME
table2.text = "abcRE".
RELEASE table2.
RELEASE table1.
END.
END.
END.
The problem occurs whenever I press F10 twice within one second. Table2 has a primary (but not unique) index including the date and time fields. In the first case table1.status is "A", so status will be set to "B", then pressing F10 second time will set the status to "C". The problem is with table2, because the two new records should be created in this order:
02/15/2012 11:45:02 abcRE
02/15/2012 11:45:02 abcIR
But I made the program select table content to a log file after it created table2 records, and the result is as follows:
select *
from table2
02/15/2012 11:45:02 abcRE
select *
from table2
02/15/2012 11:45:02 abcIR
02/15/2012 11:45:02 abcRE
So it seems in the first case table2 record was created (with "abcRE"), then in the second case the new table2 record (with "abcIR") got created as if it would have recorded earlier. Any idea how it can occur that the record created later is the first and not the second one in the table?
Regards,
Peter