fix export problems pre 7.3
authorchriskl <chriskl>
Mon, 7 Jun 2004 15:39:38 +0000 (15:39 +0000)
committerchriskl <chriskl>
Mon, 7 Jun 2004 15:39:38 +0000 (15:39 +0000)
HISTORY
dataexport.php

diff --git a/HISTORY b/HISTORY
index bc64f59ebcf6ad070b291fc5a5b6d4727ddda149..ef055051961a81d42486cd3a268c7c7a63f04cc2 100644 (file)
--- a/HISTORY
+++ b/HISTORY
@@ -12,6 +12,7 @@ Version 3.4.1
 
 Bugs
 * Fix export of mixed case tables pre 7.4
+* Fix table export problems pre 7.3
 
 Version 3.4
 -----------
index bd3c78f42741b565fcfc6bac09c2cff67bd199a5..7cb22f369e602d82b361883c25da7c3a8f1b6815 100644 (file)
@@ -4,7 +4,7 @@
         * Does an export to the screen or as a download.  This checks to
         * see if they have pg_dump set up, and will use it if possible.
         *
-        * $Id: dataexport.php,v 1.14 2004/04/12 07:50:32 chriskl Exp $
+        * $Id: dataexport.php,v 1.15 2004/06/07 15:39:38 chriskl Exp $
         */
 
        $extensions = array(
@@ -35,7 +35,7 @@
                                        $url = 'dbexport.php?database=' . urlencode($_REQUEST['database']);
                                        $url .= '&what=' . urlencode($_REQUEST['what']);
                                        $url .= '&table=' . urlencode($_REQUEST['table']);
-                                       $url .= '&schema=' . urlencode($_REQUEST['schema']);
+                                       if ($data->hasSchemas()) $url .= '&schema=' . urlencode($_REQUEST['schema']);
                                        $url .= '&d_format=' . urlencode($_REQUEST['d_format']);
                                        $url .= '&output=' . urlencode($_REQUEST['output']);
                                        if (isset($_REQUEST['d_oids'])) $url .= '&d_oids=' . urlencode($_REQUEST['d_oids']);
@@ -56,7 +56,7 @@
                                        $url = 'dbexport.php?database=' . urlencode($_REQUEST['database']);
                                        $url .= '&what=' . urlencode($_REQUEST['what']);
                                        $url .= '&table=' . urlencode($_REQUEST['table']);
-                                       $url .= '&schema=' . urlencode($_REQUEST['schema']);
+                                       if ($data->hasSchemas()) $url .= '&schema=' . urlencode($_REQUEST['schema']);
                                        $url .= '&output=' . urlencode($_REQUEST['output']);
                                        if (isset($_REQUEST['s_clean'])) $url .= '&s_clean=' . urlencode($_REQUEST['s_clean']);
                                        $url .= "&" . SID;
                                        $url = 'dbexport.php?database=' . urlencode($_REQUEST['database']);
                                        $url .= '&what=' . urlencode($_REQUEST['what']);
                                        $url .= '&table=' . urlencode($_REQUEST['table']);
-                                       $url .= '&schema=' . urlencode($_REQUEST['schema']);
+                                       if ($data->hasSchemas()) $url .= '&schema=' . urlencode($_REQUEST['schema']);
                                        $url .= '&sd_format=' . urlencode($_REQUEST['sd_format']);
                                        $url .= '&output=' . urlencode($_REQUEST['output']);
                                        if (isset($_REQUEST['sd_clean'])) $url .= '&sd_clean=' . urlencode($_REQUEST['sd_clean']);
                                        if (isset($_REQUEST['sd_oids'])) $url .= '&sd_oids=' . urlencode($_REQUEST['sd_oids']);
                                        $url .= "&" . SID;
-                                       
+
                                        header("Location: {$url}");
                                        exit;
                                }