I have a cursor inside a program unit in Oracle Forms 6
and its supposed to get one row from this cursor ..
but in some values (only some and others not) it gets the same row twice (duplicated) in cursor's active set , I have checked on ROWNUM and it confirmed same row retrieval !!
I checked the table for duplicated values but it returned non , also the selected column is the primary key !!!!
DECLARE
CURSOR C IS
SELECT CRIME.CRIME_COD E
FROM CRIMES CRIME
WHERE yy=:yy
AND xx=:xx ;
BEGIN
OPEN C ;
FETCH C --
INTO number_type_var iable ;
Close C;
Note that :
yy column contains ARABIC language data
I have solved the problem with some workaround , BUT I need to understand why this behaviour occurs ...
any one faced such problem before ??
and its supposed to get one row from this cursor ..
but in some values (only some and others not) it gets the same row twice (duplicated) in cursor's active set , I have checked on ROWNUM and it confirmed same row retrieval !!
I checked the table for duplicated values but it returned non , also the selected column is the primary key !!!!
DECLARE
CURSOR C IS
SELECT CRIME.CRIME_COD E
FROM CRIMES CRIME
WHERE yy=:yy
AND xx=:xx ;
BEGIN
OPEN C ;
FETCH C --
INTO number_type_var iable ;
Close C;
Note that :
yy column contains ARABIC language data
I have solved the problem with some workaround , BUT I need to understand why this behaviour occurs ...
any one faced such problem before ??
Comment