summaryrefslogtreecommitdiffstats
path: root/backend/php-postgresql/index.php
diff options
context:
space:
mode:
authorondrej.zara <none@none>2010-03-11 17:43:28 +0000
committerondrej.zara <none@none>2010-03-11 17:43:28 +0000
commita3845d3e9907bd67e7be9a9f86458d2c80bb568c (patch)
tree90131c6c26aa0e16d2d3245b391e318db8229d3a /backend/php-postgresql/index.php
parenta5d77fa4fd588d165425c54286557c0d478ab4fa (diff)
downloadwwwsqldesigner-a3845d3e9907bd67e7be9a9f86458d2c80bb568c.zip
wwwsqldesigner-a3845d3e9907bd67e7be9a9f86458d2c80bb568c.tar.gz
wwwsqldesigner-a3845d3e9907bd67e7be9a9f86458d2c80bb568c.tar.bz2
#68, thanks to geompse
--HG-- extra : convert_revision : svn%3Ab267cdba-c1da-11dd-874b-8bacd04a0a74/trunk%4081
Diffstat (limited to 'backend/php-postgresql/index.php')
-rw-r--r--backend/php-postgresql/index.php1
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 {