]> git.joonet.de Git - adminer.git/commitdiff
add links to oracle docs
authorIvan Masár <helix84@centrum.sk>
Tue, 27 Aug 2019 14:33:36 +0000 (16:33 +0200)
committerJakub Vrana <jakub@vrana.cz>
Wed, 28 Aug 2019 08:14:31 +0000 (10:14 +0200)
adminer/db.inc.php
adminer/foreign.inc.php
adminer/include/editing.inc.php
adminer/processlist.inc.php

index 0dd091341cc2907ca05a1f4c6c84a07922893737..414de59effe8d61ffbb5cdc6eb42088ec8ba0f6b 100644 (file)
@@ -74,11 +74,11 @@ if ($adminer->homepage()) {
                        echo '<th>' . lang('Table');
                        echo '<td>' . lang('Engine') . doc_link(array('sql' => 'storage-engines.html'));
                        echo '<td>' . lang('Collation') . doc_link(array('sql' => 'charset-charsets.html', 'mariadb' => 'supported-character-sets-and-collations/'));
-                       echo '<td>' . lang('Data Length') . doc_link(array('sql' => 'show-table-status.html', 'pgsql' => 'functions-admin.html#FUNCTIONS-ADMIN-DBOBJECT'));
+                       echo '<td>' . lang('Data Length') . doc_link(array('sql' => 'show-table-status.html', 'pgsql' => 'functions-admin.html#FUNCTIONS-ADMIN-DBOBJECT', 'oracle' => 'REFRN20286'));
                        echo '<td>' . lang('Index Length') . doc_link(array('sql' => 'show-table-status.html', 'pgsql' => 'functions-admin.html#FUNCTIONS-ADMIN-DBOBJECT'));
                        echo '<td>' . lang('Data Free') . $doc_link;
                        echo '<td>' . lang('Auto Increment') . doc_link(array('sql' => 'example-auto-increment.html', 'mariadb' => 'auto_increment/'));
-                       echo '<td>' . lang('Rows') . doc_link(array('sql' => 'show-table-status.html', 'pgsql' => 'catalog-pg-class.html#CATALOG-PG-CLASS'));
+                       echo '<td>' . lang('Rows') . doc_link(array('sql' => 'show-table-status.html', 'pgsql' => 'catalog-pg-class.html#CATALOG-PG-CLASS', 'oracle' => 'REFRN20286'));
                        echo (support("comment") ? '<td>' . lang('Comment') . doc_link(array('sql' => 'show-table-status.html', 'pgsql' => 'functions-info.html#FUNCTIONS-INFO-COMMENT-TABLE')) : '');
                        echo "</thead>\n";
 
index c526323c2f2ba111d4610c3795af5059020db663..02392eb06822b4e19a12674715c74f0fc719d986 100644 (file)
@@ -97,7 +97,7 @@ foreach ($row["source"] as $key => $val) {
        'mariadb' => "foreign-keys/",
        'pgsql' => "sql-createtable.html#SQL-CREATETABLE-REFERENCES",
        'mssql' => "ms174979.aspx",
-       'oracle' => "clauses002.htm#sthref2903",
+       'oracle' => "https://docs.oracle.com/cd/B19306_01/server.102/b14200/clauses002.htm#sthref2903",
 )); ?>
 <p>
 <input type="submit" value="<?php echo lang('Save'); ?>">
index eb44fc8d256a875c3e98d663df12eae9d629de65..81577801880cec0168d4f3fbf44e10102c638312 100644 (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/";
index abf935747ff85b3c49cc857f74a1d3056b1cc3ab..c2affc6a816b3e6d3fe801debb2b333b18bec493 100644 (file)
@@ -27,7 +27,7 @@ foreach (process_list() as $i => $row) {
                        echo "<th>$key" . doc_link(array(
                                'sql' => "show-processlist.html#processlist_" . strtolower($key),
                                'pgsql' => "monitoring-stats.html#PG-STAT-ACTIVITY-VIEW",
-                               'oracle' => "../b14237/dynviews_2088.htm",
+                               'oracle' => "REFRN30223",
                        ));
                }
                echo "</thead>\n";