Skip to content
  • Cade Truitt's avatar
    c8e48f08
    Add `:all` argument to `count` in `reset_counters` · c8e48f08
    Cade Truitt authored
    Prior to this fix, if an association had a scope with a `select`,
    calls to `reset_counters` would generate invalid SQL and throw:
    
    ActiveRecord::StatementInvalid: [$DB_ADAPTER]: wrong number of
    arguments to function COUNT()
    
    References #10710, #13648
    c8e48f08
    Add `:all` argument to `count` in `reset_counters`
    Cade Truitt authored
    Prior to this fix, if an association had a scope with a `select`,
    calls to `reset_counters` would generate invalid SQL and throw:
    
    ActiveRecord::StatementInvalid: [$DB_ADAPTER]: wrong number of
    arguments to function COUNT()
    
    References #10710, #13648
Loading