weixin_39782500 2020-11-22 01:58
浏览 0

find_by_sql in dm-ar-finders interacts badly with dm-aggregates count

If you do Thing.find_by_sql(blah).count then it gives you the results of Thing.all.count instead. Example script demonstrating this attached.

Created by DRMacIver - 2010-09-21 11:01:15 UTC

Original Lighthouse ticket: http://datamapper.lighthouseapp.com/projects/20609/tickets/1416

该提问来源于开源项目:datamapper/dm-core

  • 写回答

5条回答 默认 最新

  • weixin_39782500 2020-11-22 01:58
    关注

    This is a duplicate of #1203

    by Martin Gamsjaeger (snusnu)

    评论

报告相同问题?