]> git.joonet.de Git - adminer.git/commitdiff
Fix typo in comment
authorJakub Vrana <jakub@vrana.cz>
Thu, 17 Apr 2025 13:34:20 +0000 (15:34 +0200)
committerJakub Vrana <jakub@vrana.cz>
Thu, 17 Apr 2025 13:34:20 +0000 (15:34 +0200)
adminer/drivers/oracle.inc.php
adminer/drivers/pgsql.inc.php

index 59a445b079a3ae9dcef2610905b0337110a57db2..af6d9b7c8fca9778a4cece296777d6a3756c8866 100644 (file)
@@ -391,7 +391,6 @@ ORDER BY ac.constraint_type, aic.column_position", $connection2) as $row
                $queries = array();
                foreach ($alter as $val) {
                        if ($val[0] != "INDEX") {
-                               //! descending UNIQUE indexes results in syntax error
                                $val[2] = preg_replace('~ DESC$~', '', $val[2]);
                                $create = ($val[2] == "DROP"
                                        ? "\nDROP CONSTRAINT " . idf_escape($val[1])
index 259ba8067eb3d4c1a21534674b1572c61cc3e193..0eb3c5c9010a07e0f2a40d0bc5de260bf4b2dd7d 100644 (file)
@@ -713,7 +713,7 @@ ORDER BY conkey, conname") as $row
                $queries = array();
                foreach ($alter as $val) {
                        if ($val[0] != "INDEX") {
-                               //! descending UNIQUE indexes results in syntax error
+                               //! descending UNIQUE indexes result in syntax error
                                $create[] = ($val[2] == "DROP"
                                        ? "\nDROP CONSTRAINT " . idf_escape($val[1])
                                        : "\nADD" . ($val[1] != "" ? " CONSTRAINT " . idf_escape($val[1]) : "") . " $val[0] " . ($val[0] == "PRIMARY" ? "KEY " : "") . "(" . implode(", ", $val[2]) . ")"