SELECT myParent.* FROM myParent ; WHERE myParent.rId = Null ; INTO ARRAY ZZThe correct way is to use IS NULL operator if you want to check for Nulls.
SELECT myParent.* FROM myParent ; WHERE myParent.rId IS NULL ; INTO ARRAY ZZ>If you declare a field not nullable, and index it ( like a id AUTOINC primary key ),
>WITH CREATEOBJECT('session') > SET DATASESSION TO .DatasessionId > CLEAR > CREATE CURSOR myParent ( rId I UNIQUE) > FOR k=1 TO 10 > INSERT INTO myParent VALUES (M.K) > NEXT > ON ERROR ? 'ERROR >>>>>>>>>> ',MESSAGE() > > CREATE CURSOR myCursor( fkId i NULL) > INSERT INTO myCursor VALUES (NULL) > SYS(3054,12) > > SELECT myParent.* FROM myParent,myCursor WHERE myParent.rId=myCursor.fkId INTO ARRAY ZZ && this not fire THE INDEX error > > SELECT myParent.* FROM myParent WHERE myParent.rId=myCursor.fkId INTO ARRAY ZZ && this fire THE INDEX error > > > > ON ERROR >ENDWITH >>