diff options
| author | David M <davidmj@users.sourceforge.net> | 2007-02-22 19:58:05 +0000 |
|---|---|---|
| committer | David M <davidmj@users.sourceforge.net> | 2007-02-22 19:58:05 +0000 |
| commit | 42f3115763fa2496f552a25305266283152c209b (patch) | |
| tree | 218599240ad92a7241218300d614873622a5b111 /phpBB/includes/search/fulltext_native.php | |
| parent | a8f6aafa43bd255ecd56a8bfb1b78a76e966f3f8 (diff) | |
| download | forums-42f3115763fa2496f552a25305266283152c209b.tar forums-42f3115763fa2496f552a25305266283152c209b.tar.gz forums-42f3115763fa2496f552a25305266283152c209b.tar.bz2 forums-42f3115763fa2496f552a25305266283152c209b.tar.xz forums-42f3115763fa2496f552a25305266283152c209b.zip | |
#8244
- cleaned up the TRUNCATE/DELETE FROM in the native search backend
- fixed an imporoper default value on some upgrades
git-svn-id: file:///svn/phpbb/trunk@7036 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/search/fulltext_native.php')
| -rwxr-xr-x | phpBB/includes/search/fulltext_native.php | 24 |
1 files changed, 2 insertions, 22 deletions
diff --git a/phpBB/includes/search/fulltext_native.php b/phpBB/includes/search/fulltext_native.php index bd197feede..30dc779078 100755 --- a/phpBB/includes/search/fulltext_native.php +++ b/phpBB/includes/search/fulltext_native.php @@ -1271,33 +1271,13 @@ class fulltext_native extends search_backend case 'sqlite': case 'firebird': $db->sql_query('DELETE FROM ' . SEARCH_WORDLIST_TABLE); - break; - - default: - $db->sql_query('TRUNCATE TABLE ' . SEARCH_WORDLIST_TABLE); - break; - } - - switch ($db->sql_layer) - { - case 'sqlite': - case 'firebird': $db->sql_query('DELETE FROM ' . SEARCH_WORDMATCH_TABLE); - break; - - default: - $db->sql_query('TRUNCATE TABLE ' . SEARCH_WORDMATCH_TABLE); - break; - } - - switch ($db->sql_layer) - { - case 'sqlite': - case 'firebird': $db->sql_query('DELETE FROM ' . SEARCH_RESULTS_TABLE); break; default: + $db->sql_query('TRUNCATE TABLE ' . SEARCH_WORDLIST_TABLE); + $db->sql_query('TRUNCATE TABLE ' . SEARCH_WORDMATCH_TABLE); $db->sql_query('TRUNCATE TABLE ' . SEARCH_RESULTS_TABLE); break; } |
