silverstripe-textextraction/tests
Ingo Schommer 8aca06aef2 Truncate FileContentCache by default to avoid SQL query errors
MySQL has a packet limit of 1MB as a default
(http://dev.mysql.com/doc/refman/5.0/en/packet-too-large.html).
This interferes with the UPDATE queries required
to add file content caches. Since the query can't be terminated
correctly, the whole content will be discarded with a query error.

This change allows to truncate content prior to the UPDATE operation,
and defaults to 500 characters. This leaves some room for multibyte
characters as well as other parts of the SQL query.
2015-05-07 19:14:02 +12:00
..
fixtures BUG Improved HTMLTextExtractor, remove non-content tags 2012-09-06 13:41:21 +02:00
FileTextCacheDatabaseTest.php Truncate FileContentCache by default to avoid SQL query errors 2015-05-07 19:14:02 +12:00
FileTextExtractableTest.php API Implement Tika support 2015-02-20 15:12:20 +13:00
HTMLTextExtractorTest.php BUG Improved HTMLTextExtractor, remove non-content tags 2012-09-06 13:41:21 +02:00
PDFTextExtractorTest.php API Implement Tika support 2015-02-20 15:12:20 +13:00
TikaTextExtractorTest.php API Support tika server 2015-02-25 17:55:41 +13:00