1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-07 23:27:17 +02:00

- PostgreSQL: Avoid warning about crdb_version (fix #924, regression from 5.0.5)

This commit is contained in:
Jakub Vrana
2025-03-18 16:20:44 +01:00
parent 3fb6cac361
commit 751405e006
3 changed files with 3 additions and 5 deletions

View File

@@ -128,7 +128,7 @@ function min_version($version, $maria_db = "", $connection2 = null) {
$server_info = $match[1];
$version = $maria_db;
}
return $version && version_compare($server_info, $version) >= 0;
return $version && version_compare(preg_replace('~^\D+~', '', $server_info), $version) >= 0;
}
/** Get connection charset