From: Jakub Vrana Date: Tue, 15 Apr 2025 20:47:48 +0000 (+0200) Subject: AdminerSqlLog: Store schema X-Git-Tag: v5.3.0~42 X-Git-Url: https://git.joonet.de/?a=commitdiff_plain;h=45799f460533172e035714f250220b48a8a478a6;p=adminer.git AdminerSqlLog: Store schema --- diff --git a/plugins/sql-log.php b/plugins/sql-log.php index bcaadf79..aee8366f 100644 --- a/plugins/sql-log.php +++ b/plugins/sql-log.php @@ -26,7 +26,7 @@ class AdminerSqlLog extends Adminer\Plugin { private function log($query) { if ($this->filename == "") { - $this->filename = Adminer\adminer()->database() . ".sql"; // no database goes to ".sql" to avoid collisions + $this->filename = Adminer\adminer()->database() . ($_GET["ns"] != "" ? ".$_GET[ns]" : "") . ".sql"; // no database goes to ".sql" to avoid collisions } $fp = fopen($this->filename, "a"); flock($fp, LOCK_EX);