search for: trades_id

Displaying 2 results from an estimated 2 matches for "trades_id".

2011 Sep 05
8
In Rails 3.1 Model.count() ignores :include - no outer join in generated SQL
...f Trade.do_something stale_trades = Trade.count(''transaction_trades.id'', :include => :transaction_trades, :group => ''trades.id'') :having => "count_transaction_trades_id = 0") end end Earlier this used to work perfectly, now I get this: Mysql2::Error: Unknown column ''transaction_trades.id'' in ''field list'': SELECT COUNT(transaction_trades.id) AS count_transaction_trades_id, trades.id AS trades_id FROM `trades` GROUP BY tr...
2011 Sep 08
4
In Rails 3.1 Model.count() ignores :include - no outer join in generated SQL
...ade.do_something stale_trades = Trade.count(''transaction_trades.id'', :include => :transaction_trades, :group => ''trades.id'') :having => "count_transaction_trades_id = 0") end end Earlier this used to work perfectly, now I get this: Mysql2::Error: Unknown column ''transaction_trades.id'' in ''field list'': SELECT COUNT(transaction_trades.id) AS count_transaction_trades_id, trades.id AS trades_id FROM `trades` GROU...