Patch to bug #20050
http://rubyforge.org/tracker/index.php?func=detail&aid=20050&group_id=775&atid=3061
to_a method is deprecated in result returned by execute method, so next code doesn't work:
FeedTools.feed_cache.connection.execute(
"SELECT href FROM cached_feeds WHERE " +
"last_retrieved < '#{expire_time_string}'").to_a.flatten
It returns [#<Mysql::Result...>]
execute can be changed to select_values, which returns an array with the column selected.
I have attached a patch. |