mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[feature/sphinx-fulltext-search] use sql_table_exists
Use sql_table_exists( ) method in db_tools to support all database types. PHPBB3-10946
This commit is contained in:
parent
f40da411c3
commit
13c451ca2e
1 changed files with 1 additions and 6 deletions
|
@ -667,14 +667,9 @@ class phpbb_search_fulltext_sphinx
|
||||||
*/
|
*/
|
||||||
function index_created($allow_new_files = true)
|
function index_created($allow_new_files = true)
|
||||||
{
|
{
|
||||||
$sql = 'SHOW TABLES LIKE \'' . SPHINX_TABLE . '\'';
|
|
||||||
$result = $this->db->sql_query($sql);
|
|
||||||
$row = $this->db->sql_fetchrow($result);
|
|
||||||
$this->db->sql_freeresult($result);
|
|
||||||
|
|
||||||
$created = false;
|
$created = false;
|
||||||
|
|
||||||
if ($row)
|
if ($this->db_tools->sql_table_exists(SPHINX_TABLE))
|
||||||
{
|
{
|
||||||
$created = true;
|
$created = true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue