Bugs: Browse | Submit New | Admin

[#20050] Fetch default feed list in feed_updater doesn't work

Date:
2008-05-09 10:14
Priority:
3
Submitted By:
Sergio Cambra (sergiocambra)
Assigned To:
Nobody (None)
Category:
None
State:
Open
Summary:
Fetch default feed list in feed_updater doesn't work

Detailed description
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.

Add A Comment: Notepad

Please login


Followup

No Followups Have Been Posted

Attached Files:

Name Description Download
feedupdater_default_feed_list.patch Download

Changes:

Field Old Value Date By
File Added3697: feedupdater_default_feed_list.patch2008-05-09 10:14sergiocambra