1
0
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:
Jakub Vrana
2025-02-19 14:34:11 +01:00
parent 2385bf72bd
commit 9def8d7f95
2 changed files with 2 additions and 1 deletions

View File

@@ -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"];

View File

@@ -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