You need to call next
method to confirm whether there is data in the set, then to read the data. code should be
while([resultSet next])
{
NSArray *resultArray = [resultSet objectForColumnName:@"array"];
NSDate *resultDate = [resultSet dateForColumn:@"date"];
[results addObject:resultArray];
[results addObject:resultDate];
}