diff options
Diffstat (limited to 'backend/php-postgresql')
-rw-r--r-- | backend/php-postgresql/index.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/backend/php-postgresql/index.php b/backend/php-postgresql/index.php index 69f74a8..95f28c8 100644 --- a/backend/php-postgresql/index.php +++ b/backend/php-postgresql/index.php @@ -139,6 +139,7 @@ $keyname = $row2["constraint_name"]; if ($keyname != $keyname1) { if ($keyname1 != "") { $xml .= '</key>'; } + if ($row2["constraint_type"] == "PRIMARY KEY") { $row2["constraint_type"] = "PRIMARY"; } $xml .= '<key name="'.$keyname.'" type="'.$row2["constraint_type"].'">'; $xml .= isset($row2["column_name"]) ? '<part>'.$row2["column_name"].'</part>' : ""; } else { |