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

add links to oracle docs

This commit is contained in:
Ivan Masár
2019-08-27 16:33:36 +02:00
committed by Jakub Vrana
parent 2a3de78a8e
commit 8ae059d2ac
4 changed files with 8 additions and 5 deletions

View File

@@ -528,12 +528,15 @@ function doc_link($paths, $text = "<sup>?</sup>") {
global $jush, $connection;
$server_info = $connection->server_info;
$version = preg_replace('~^(\d\.?\d).*~s', '\1', $server_info); // two most significant digits
if (preg_match('~Oracle~', $server_info)) {
$version = preg_replace('~^.* (\d+)\.(\d+)\.\d+\.\d+\.\d+.*~s', '\1\2', $server_info);
}
$urls = array(
'sql' => "https://dev.mysql.com/doc/refman/$version/en/",
'sqlite' => "https://www.sqlite.org/",
'pgsql' => "https://www.postgresql.org/docs/$version/static/",
'mssql' => "https://msdn.microsoft.com/library/",
'oracle' => "https://download.oracle.com/docs/cd/B19306_01/server.102/b14200/",
'oracle' => "https://www.oracle.com/pls/topic/lookup?ctx=db$version&id=",
);
if (preg_match('~MariaDB~', $server_info)) {
$urls['sql'] = "https://mariadb.com/kb/en/library/";