function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
VishalAscVishalAsc 

SOQL returning wrong results - Summer 12 bug??

I have a custom object having lookup to opportunity.

There are 2 records in this custom object for a given opportunity A.

 

My query on custom object is to select all fields with only codition that is based on opportunity id

Select ................. From .......... c where Opportunity__c =: oppId

 

The query does return 2 records, which is correct.

 

But what's confusing is, the 2 records returned by query are having SAME information, DESPITE that fact that in database both the records have same value.

 

Further confusing is the fact that when I print the list that I get from query, the Ids of records are different BUT values are same.

 

Is this Summer 12 bug?