From 9864e17bc748025dfa721fbdf33a2cac7052b948 Mon Sep 17 00:00:00 2001 From: Dries Buytaert <dries@buytaert.net> Date: Thu, 8 Sep 2011 09:33:22 -0400 Subject: [PATCH] - Patch #1244116 by brianV, catch, xjm, CrashTest_ | jenpasch: Fixed Feed items with title longer than 255 characters fail to insert into aggregator_item(). --- modules/aggregator/aggregator.install | 5 ++--- modules/aggregator/tests/aggregator_test_rss091.xml | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/modules/aggregator/aggregator.install b/modules/aggregator/aggregator.install index eecd14fb27f1..a6d576a7536c 100644 --- a/modules/aggregator/aggregator.install +++ b/modules/aggregator/aggregator.install @@ -226,10 +226,9 @@ function aggregator_schema() { 'description' => 'The {aggregator_feed}.fid to which this item belongs.', ), 'title' => array( - 'type' => 'varchar', - 'length' => 255, + 'type' => 'text', + 'size' => 'normal', 'not null' => TRUE, - 'default' => '', 'description' => 'Title of the feed item.', ), 'link' => array( diff --git a/modules/aggregator/tests/aggregator_test_rss091.xml b/modules/aggregator/tests/aggregator_test_rss091.xml index 1fd5320d3e98..f39a2732c034 100644 --- a/modules/aggregator/tests/aggregator_test_rss091.xml +++ b/modules/aggregator/tests/aggregator_test_rss091.xml @@ -22,7 +22,7 @@ <description>First example feed item description.</description> </item> <item> - <title>Second example feed item title</title> + <title>Second example feed item title. This title is extremely long so that it exceeds the 255 character limit for titles in feed item storage. In fact it's so long that this sentence isn't long enough so I'm rambling a bit to make it longer, nearly there now. Ah now it's long enough so I'll shut up.</title> <link>http://example.com/example-turns-two</link> <description>Second example feed item description.</description> </item> -- GitLab