With AAF I am seeing a strange situation, where a result set has 1 element, but the element is nil, or perhaps sometimes an empty array. I realize this isn''t much to go by, but the rest of my system, and seemingly parallel queries, are working fine. Any suggestions are much appreciated. John
On Mon, Dec 18, 2006 at 04:48:27PM -0500, John Bachir wrote:> With AAF I am seeing a strange situation, where a result set has 1 > element, but the element is nil, or perhaps sometimes an empty array. > I realize this isn''t much to go by, but the rest of my system, and > seemingly parallel queries, are working fine. Any suggestions are > much appreciated.this shouldn''t happen. how do you use aaf ? any options you give to find_by_contents, i.e. sorting or active record conditions ? Jens -- webit! Gesellschaft f?r neue Medien mbH www.webit.de Dipl.-Wirtschaftsingenieur Jens Kr?mer kraemer at webit.de Schnorrstra?e 76 Tel +49 351 46766 0 D-01069 Dresden Fax +49 351 46766 66
On Dec 19, 2006, at 4:28 AM, Jens Kraemer wrote:> On Mon, Dec 18, 2006 at 04:48:27PM -0500, John Bachir wrote: >> With AAF I am seeing a strange situation, where a result set has 1 >> element, but the element is nil, or perhaps sometimes an empty array. >> I realize this isn''t much to go by, but the rest of my system, and >> seemingly parallel queries, are working fine. Any suggestions are >> much appreciated. > > this shouldn''t happen. how do you use aaf ? any options you give > to find_by_contents, i.e. sorting or active record conditions ?I figured out my problem, and it was a silly one-- I was beginning my paging on element 1 instead of 0. Therefore, with queries with 1 result, the total_hits is 1, but the result array has 0 elements. John