mirror of
https://github.com/vrana/adminer.git
synced 2025-08-08 07:36:44 +02:00
MS SQL: Foreign keys in non-default schema (bug #833)
This commit is contained in:
@@ -546,7 +546,7 @@ WHERE OBJECT_NAME(i.object_id) = " . q($table)
|
|||||||
|
|
||||||
function foreign_keys($table) {
|
function foreign_keys($table) {
|
||||||
$return = array();
|
$return = array();
|
||||||
foreach (get_rows("EXEC sp_fkeys @fktable_name = " . q($table)) as $row) {
|
foreach (get_rows("EXEC sp_fkeys @fktable_name = " . q($table) . ", @fktable_owner = " . q(get_schema())) as $row) {
|
||||||
$foreign_key = &$return[$row["FK_NAME"]];
|
$foreign_key = &$return[$row["FK_NAME"]];
|
||||||
$foreign_key["db"] = $row["PKTABLE_QUALIFIER"];
|
$foreign_key["db"] = $row["PKTABLE_QUALIFIER"];
|
||||||
$foreign_key["table"] = $row["PKTABLE_NAME"];
|
$foreign_key["table"] = $row["PKTABLE_NAME"];
|
||||||
|
@@ -1,5 +1,6 @@
|
|||||||
Adminer 4.16.0-dev:
|
Adminer 4.16.0-dev:
|
||||||
PostgreSQL: Preserve whitespace in EXPLAIN (bug #827)
|
PostgreSQL: Preserve whitespace in EXPLAIN (bug #827)
|
||||||
|
MS SQL: Foreign keys in non-default schema (bug #833)
|
||||||
Oracle: Include tables granted by other user
|
Oracle: Include tables granted by other user
|
||||||
MongoDB: Execute commands against the selected DB
|
MongoDB: Execute commands against the selected DB
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user