db.Search fails on Domino 6.5

My application that uses C++ API to perform a db.Search() with @IsAvailable and SELECT fails on Domino 6.5 when run from Notes 5.0.12. It works fine in 6.0 and 5.0.x

The formulas are as follows.

lnStatus = db.Search(“@IsAvailable(MyField)”, &docsFound);

lnStatus = db.Search(“SELECT(Type = "Person"”), &docsFound);

Is this a known defect in Domino 6.5?

Subject: db.Search fails on Domino 6.5

aren’t you missing a bracket in your 2nd line?

lnStatus = db.Search(“SELECT(Type = "Person"”), &docsFound);

should be:

lnStatus = db.Search(“SELECT(Type = "Person")”), &docsFound);