This commit is contained in:
Roman Kelesidis 2024-02-11 20:12:59 +07:00
commit e1c2c3cac1
2 changed files with 1 additions and 21 deletions

View file

@ -34,8 +34,3 @@ if (!DB()->query("DROP DATABASE " . SELECTED_DB)) {
if (!DB()->query("CREATE DATABASE " . SELECTED_DB)) {
return;
}
// Import sql dump from file
if (!DB()->multi_query($sql_dump)) {
return;
}

View file

@ -64,7 +64,7 @@ class SqlDb
$this->do_explain = ($this->dbg_enabled && !empty($_COOKIE['explain']));
$this->slow_time = SQL_SLOW_QUERY_TIME;
// Links to the global vairables (for recording all the logs on all servers, counting total request count and etc)
// Links to the global variables (for recording all the logs on all servers, counting total request count and etc)
$this->DBS['log_file'] =& $DBS->log_file;
$this->DBS['log_counter'] =& $DBS->log_counter;
$this->DBS['num_queries'] =& $DBS->num_queries;
@ -163,21 +163,6 @@ class SqlDb
return $result;
}
/**
* Performs one or more queries on the database
*
* @param $query
* @return mixed
*/
public function multi_query($query): mixed
{
if (!$result = $this->multi_query($query)) {
$this->trigger_error();
}
return $result;
}
/**
* Return number of rows
*