diff options
author | Jakub Senko <jakubsenko@gmail.com> | 2016-11-13 18:08:35 +0100 |
---|---|---|
committer | Jakub Senko <jakubsenko@gmail.com> | 2016-11-16 17:59:28 +0100 |
commit | e974f338afb86c065e9b160363bc2e6156f8566d (patch) | |
tree | e0eddcc8228c5662fbd96e136483fb47e8e365a1 /phpBB/phpbb/search/fulltext_native.php | |
parent | 9c7e8c2dc5607a594f1e8d3a633dc686e8c002a7 (diff) | |
download | forums-e974f338afb86c065e9b160363bc2e6156f8566d.tar forums-e974f338afb86c065e9b160363bc2e6156f8566d.tar.gz forums-e974f338afb86c065e9b160363bc2e6156f8566d.tar.bz2 forums-e974f338afb86c065e9b160363bc2e6156f8566d.tar.xz forums-e974f338afb86c065e9b160363bc2e6156f8566d.zip |
[ticket/14739] Remove SQLite 2.8.x database driver
PHPBB3-14739
Diffstat (limited to 'phpBB/phpbb/search/fulltext_native.php')
-rw-r--r-- | phpBB/phpbb/search/fulltext_native.php | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/phpBB/phpbb/search/fulltext_native.php b/phpBB/phpbb/search/fulltext_native.php index 580d9b6878..2071a973e5 100644 --- a/phpBB/phpbb/search/fulltext_native.php +++ b/phpBB/phpbb/search/fulltext_native.php @@ -878,7 +878,6 @@ class fulltext_native extends \phpbb\search\base break; - case 'sqlite': case 'sqlite3': $sql_array_count['SELECT'] = ($type == 'posts') ? 'DISTINCT p.post_id' : 'DISTINCT p.topic_id'; $sql = 'SELECT COUNT(' . (($type == 'posts') ? 'post_id' : 'topic_id') . ') as total_results @@ -1185,7 +1184,7 @@ class fulltext_native extends \phpbb\search\base } else { - if ($this->db->get_sql_layer() == 'sqlite' || $this->db->get_sql_layer() == 'sqlite3') + if ($this->db->get_sql_layer() == 'sqlite3') { $sql = 'SELECT COUNT(topic_id) as total_results FROM (SELECT DISTINCT t.topic_id'; @@ -1202,7 +1201,7 @@ class fulltext_native extends \phpbb\search\base $post_visibility $sql_fora AND t.topic_id = p.topic_id - $sql_time" . (($this->db->get_sql_layer() == 'sqlite' || $this->db->get_sql_layer() == 'sqlite3') ? ')' : ''); + $sql_time" . ($this->db->get_sql_layer() == 'sqlite3' ? ')' : ''); } $result = $this->db->sql_query($sql); @@ -1667,7 +1666,6 @@ class fulltext_native extends \phpbb\search\base { switch ($this->db->get_sql_layer()) { - case 'sqlite': case 'sqlite3': $this->db->sql_query('DELETE FROM ' . SEARCH_WORDLIST_TABLE); $this->db->sql_query('DELETE FROM ' . SEARCH_WORDMATCH_TABLE); |