silverstripe-framework/model
James Pluck b04a1ab41c Fix Truncate Error Issue when using views in a Unittest.
When using a view in a SilverStripe project, whenever the tear down scripts for the Unittests are run the following error occurs:

Couldn't run query:
TRUNCATE "ActivityPoints_view"
Table 'ss_tmpdb2391727.ActivityPoints_view' doesn't exist

This was due to the MySQLSchemaManager::tableList() function assuming that all records in the TABLES were actual tables containing data.

This small tweak fixes the issue by modifying the SQL to filter out views from the list before truncating.
2017-08-14 15:22:19 +12:00
..
connect Fix Truncate Error Issue when using views in a Unittest. 2017-08-14 15:22:19 +12:00
fieldtypes Fix OS X issue with Convert::html2raw, HTMLText::FirstSentence, HTMLText::Summary and Text::FirstSentence. 2017-07-10 09:49:55 +02:00
queries Fix bug: In addOrderBy method, _SortColumn will only keep the last one if there are more than 1 multi-word columns 2017-03-03 14:11:53 +13:00
Aggregate.php MINORE: Remove training whitespace. 2016-01-07 10:15:54 +13:00
ArrayList.php FIX Revert natural sort 2016-10-04 13:56:12 -07:00
DatabaseAdmin.php Merge remote-tracking branch 'origin/3.1' into 3.2 2015-09-15 13:18:47 +12:00
DataDifferencer.php FIX DataDifferencer needs to expliclty cast HTMLText values 2017-05-29 00:10:32 +01:00
DataExtension.php Revert #3425 #3396 to restore deprecated functionality 2015-08-24 11:26:25 +12:00
DataList.php FIX filterAny error message now refers to correct method name 2016-10-30 12:04:07 +00:00
DataModel.php Remove all redundant whitespace 2014-08-19 09:17:15 +12:00
DataObject.php Merge 3.4 into 3.5 2016-12-22 13:18:37 +13:00
DataObjectInterface.php Remove all redundant whitespace 2014-08-19 09:17:15 +12:00
DataQuery.php BUG Fix regression in aggregate column lookup from #6199 2016-11-10 11:13:02 +13:00
DB.php showqueries debugging tool now inserts parameters in place (#5885) 2016-09-15 09:15:19 +12:00
Filterable.php API SS_Filterable, SS_Limitable and SS_Sortable now explicitly extend SS_List 2014-07-30 11:07:01 +12:00
GroupedList.php Remove all redundant whitespace 2014-08-19 09:17:15 +12:00
HasManyList.php FIX: Ensure HasManyList foreign ID filter includes table name (fixes #7023) 2017-06-15 12:06:30 +01:00
HiddenClass.php Remove all redundant whitespace 2014-08-19 09:17:15 +12:00
Hierarchy.php Revert "TreeDropDown performance boost." 2017-07-19 12:44:43 +01:00
HTMLValue.php Rewrote usages of error suppression operator 2014-03-05 15:48:55 +13:00
Image_Backend.php BUG fix imagick interface and add to travis 2015-10-06 12:40:24 +13:00
Image.php FIX Add transparency percent argument to Image::generatePad to ensure transparency works from ::Pad 2017-05-16 21:20:21 +12:00
Limitable.php API SS_Filterable, SS_Limitable and SS_Sortable now explicitly extend SS_List 2014-07-30 11:07:01 +12:00
List.php Merge remote-tracking branch 'origin/3.1' into 3 2015-06-02 19:13:38 +12:00
ListDecorator.php Merge pull request #3828 from dhensby/pulls/byids-arraylist 2016-04-26 17:52:22 +12:00
ManyManyList.php Cleanup of RelationList, HasManyList and ManyManyList 2016-08-19 10:37:58 +01:00
Map.php Merge branch '3.1' into 3.2 2016-10-27 16:14:01 +01:00
PolymorphicHasManyList.php Remove all redundant whitespace 2014-08-19 09:17:15 +12:00
RelationList.php Cleanup of RelationList, HasManyList and ManyManyList 2016-08-19 10:37:58 +01:00
Sortable.php API SS_Filterable, SS_Limitable and SS_Sortable now explicitly extend SS_List 2014-07-30 11:07:01 +12:00
Transliterator.php Merge remote-tracking branch 'origin/3.1' into 3 2015-06-02 19:13:38 +12:00
UnsavedRelationList.php Merge pull request #3828 from dhensby/pulls/byids-arraylist 2016-04-26 17:52:22 +12:00
URLSegmentFilter.php Remove question marks, equal signs and hashes 2016-01-22 15:40:11 +00:00
ValidationException.php Remove all redundant whitespace 2014-08-19 09:17:15 +12:00
ValidationResult.php DOCS Docblock fixes for ValidationResult 2016-10-31 13:33:59 +00:00
Versioned.php Merge branch '3.4' into 3.5 2017-03-03 14:54:29 +00:00