Browse files

model_feeds:write_update/10: fix INSERT INTO "feed_items"

  • Loading branch information...
1 parent 558c76f commit 8605704b71f45394d4c11062a0432bebcf459f16 @astro committed Jun 16, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 apps/model/src/model_feeds.erl
View
2 apps/model/src/model_feeds.erl
@@ -107,7 +107,7 @@ write_update(FeedURL, {Etag, LastModified},
io:format(" e (~s) ~s~n", [EnclosureType, Enclosure])
end, Item#feed_item.enclosures),
{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,
Item#feed_item.title, Item#feed_item.published,
enforce_string(Item#feed_item.homepage),

0 comments on commit 8605704

Please sign in to comment.