Skip to content

Commit

Permalink
model_feeds:write_update/10: fix INSERT INTO "feed_items"
Browse files Browse the repository at this point in the history
  • Loading branch information
astro committed Jun 16, 2012
1 parent 558c76f commit 8605704
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/model/src/model_feeds.erl
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ write_update(FeedURL, {Etag, LastModified},
io:format(" e (~s) ~s~n", [EnclosureType, Enclosure]) io:format(" e (~s) ~s~n", [EnclosureType, Enclosure])
end, Item#feed_item.enclosures), end, Item#feed_item.enclosures),
{ok, 1} = {ok, 1} =
Q("INSERT INTO \"feed_items\" (\"feed\", \"id\", \"title\", \"published\", \"homepage\", \"payment\", \"image\", \"updated\", \"lang\", \"summary\") VALUES ($1, $2, $3, no_future(($4 :: TEXT) :: TIMESTAMP WITH TIME ZONE), $5, $6, $7, $8, $9, CURRENT_TIMESTAMP)", Q("INSERT INTO \"feed_items\" (\"feed\", \"id\", \"title\", \"published\", \"homepage\", \"payment\", \"image\", \"lang\", \"summary\", \"updated\") VALUES ($1, $2, $3, no_future(($4 :: TEXT) :: TIMESTAMP WITH TIME ZONE), $5, $6, $7, $8, $9, CURRENT_TIMESTAMP)",
[FeedURL, Item#feed_item.id, [FeedURL, Item#feed_item.id,
Item#feed_item.title, Item#feed_item.published, Item#feed_item.title, Item#feed_item.published,
enforce_string(Item#feed_item.homepage), enforce_string(Item#feed_item.homepage),
Expand Down

0 comments on commit 8605704

Please sign in to comment.