Merge pull request #125 from diolektor/fix-id-sqllog

Fixed id sqllog table and name select db
This commit is contained in:
Yuriy Pikhtarev 2017-01-23 21:00:10 +03:00 committed by GitHub
commit 4568f86a54

View file

@ -111,6 +111,7 @@ class sql_db
$p = ((bool)$this->cfg['persist']) ? 'p:' : '';
$this->link = mysqli_connect($p . $this->cfg['dbhost'], $this->cfg['dbuser'], $this->cfg['dbpasswd'], $this->cfg['dbname']);
$this->selected_db = $this->cfg['dbname'];
if (mysqli_connect_error()) {
$server = (DBG_USER) ? $this->cfg['dbhost'] : '';
@ -869,7 +870,7 @@ class sql_db
}
$id = $this->dbg_id - 1;
$htid = 'expl-' . intval($this->link) . '-' . $id;
$htid = 'expl-' . spl_object_hash($this->link) . '-' . $id;
$dbg = $this->dbg[$id];
$this->explain_out .= '