1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-06 14:46:36 +02:00

Fix errors discovered by tests

This commit is contained in:
Jakub Vrana
2025-03-27 19:56:19 +01:00
parent 4d22e8fd4e
commit 104132de36
5 changed files with 7 additions and 7 deletions

View File

@@ -385,7 +385,7 @@ if (isset($_GET["sqlite"])) {
function drop_databases($databases) {
global $connection;
$connection->__construct(":memory:"); // to unlock file, doesn't work in PDO on Windows
$connection->connect(":memory:"); // to unlock file, doesn't work in PDO on Windows
foreach ($databases as $db) {
if (!@unlink($db)) {
$connection->error = lang('File exists.');
@@ -400,7 +400,7 @@ if (isset($_GET["sqlite"])) {
if (!check_sqlite_name($name)) {
return false;
}
$connection->__construct(":memory:");
$connection->connect(":memory:");
$connection->error = lang('File exists.');
return @rename(DB, $name);
}