From 45799f460533172e035714f250220b48a8a478a6 Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Tue, 15 Apr 2025 22:47:48 +0200 Subject: [PATCH] AdminerSqlLog: Store schema --- plugins/sql-log.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);