Primary key flag is not always set
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@226 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
parent
40571431c5
commit
038e688ec9
|
@ -208,7 +208,7 @@ function select($result) {
|
|||
$types = array();
|
||||
for ($j=0; $j < count($row); $j++) {
|
||||
$field = $result->fetch_field();
|
||||
if (strlen($field->orgtable) && $field->flags & 2) {
|
||||
if (strlen($field->orgtable)) {
|
||||
if (!isset($indexes[$field->orgtable])) {
|
||||
$indexes[$field->orgtable] = array();
|
||||
foreach (indexes($field->orgtable) as $index) {
|
||||
|
|
Loading…
Reference in a new issue