mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 22:10:45 +02:00
[ticket/14044] Fix Sqlite error in tests
PHPBB3-14044
This commit is contained in:
committed by
Mate Bartus
parent
597297b169
commit
e0d06ee83e
@@ -136,7 +136,19 @@ class sqlite3 extends \phpbb\db\driver\driver
|
||||
{
|
||||
if (($this->query_result = @$this->dbo->query($query)) === false)
|
||||
{
|
||||
$this->sql_error($query);
|
||||
// Try to recover a lost database connection
|
||||
if ($this->dbo && !@$this->dbo->lastErrorMsg())
|
||||
{
|
||||
if ($this->sql_connect($this->server, $this->user, '', $this->dbname))
|
||||
{
|
||||
$this->query_result = @$this->dbo->query($query);
|
||||
}
|
||||
}
|
||||
|
||||
if ($this->query_result === false)
|
||||
{
|
||||
$this->sql_error($query);
|
||||
}
|
||||
}
|
||||
|
||||
if (defined('DEBUG'))
|
||||
|
Reference in New Issue
Block a user