Skip to content

Commit

Permalink
bug #2568722 [designer] Compound key not shown
Browse files Browse the repository at this point in the history
  • Loading branch information
lem9 committed Feb 10, 2009
1 parent 49b9a92 commit bd011d6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ $HeadURL: https://phpmyadmin.svn.sourceforge.net/svnroot/phpmyadmin/trunk/phpMyA
if it contains less than MaxExactCountViews,
thanks to Virsacer - virsacer
+ [lang] Polish update, thanks to Fixer - fixeron
- bug #2568722 [designer] Compound key not shown

3.1.2.0 (2009-01-19)
- bug #1253252 [display] Can't NULL a column with relation defined
Expand Down
7 changes: 4 additions & 3 deletions pmd_common.php
Original file line number Diff line number Diff line change
Expand Up @@ -218,11 +218,12 @@ function get_all_keys($unique_only = false)
if ($unique_only && ! $index->isUnique()) {
continue;
}
$column = key($index->getColumns());
$keys[$schema . '.' .$table . '.' . $column] = 1;
$columns = $index->getColumns();
foreach ($columns as $column_name => $dummy) {
$keys[$schema . '.' .$table . '.' . $column_name] = 1;
}
}
}

return $keys;
}

Expand Down

0 comments on commit bd011d6

Please sign in to comment.