From a3845d3e9907bd67e7be9a9f86458d2c80bb568c Mon Sep 17 00:00:00 2001 From: "ondrej.zara" Date: Thu, 11 Mar 2010 17:43:28 +0000 Subject: [PATCH] #68, thanks to geompse --HG-- extra : convert_revision : svn%3Ab267cdba-c1da-11dd-874b-8bacd04a0a74/trunk%4081 --- backend/php-postgresql/index.php | 1 + 1 file changed, 1 insertion(+) 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 .= ''; } + if ($row2["constraint_type"] == "PRIMARY KEY") { $row2["constraint_type"] = "PRIMARY"; } $xml .= ''; $xml .= isset($row2["column_name"]) ? ''.$row2["column_name"].'' : ""; } else {