Hi,

I found a segment fault when restoring a backup file from the schema node.
PFA.

--
Thanks & Regards,

Ashesh Vashi
EnterpriseDB INDIA: Enterprise Postgres Company<http://www.enterprisedb.com>
Index: frm/frmRestore.cpp
===================================================================
--- frm/frmRestore.cpp	(revision 8291)
+++ frm/frmRestore.cpp	(working copy)
@@ -421,9 +421,6 @@
                 case PGM_INDEX:
                     cmd.Append(wxT(" --index ") + commandLineCleanOption(object->GetQuotedIdentifier(), true));
                     break;
-                case PGM_SCHEMA:
-                    cmd.Append(wxT(" --schema ") + commandLineCleanOption(object->GetQuotedIdentifier(), true));
-                    break;
                 case PGM_TABLE:
                     cmd.Append(wxT(" --table ") + commandLineCleanOption(object->GetQuotedIdentifier(), true));
                     break;
@@ -433,10 +430,10 @@
                 default:
                     break;
             }
-            if (pgAppMinimumVersion(restoreExecutable, 8, 2))
-            {
+            if (object->GetMetaType() == PGM_SCHEMA)
+                cmd.Append(wxT(" --schema ") + commandLineCleanOption(object->GetQuotedIdentifier(), true));
+            else if (pgAppMinimumVersion(restoreExecutable, 8, 2))
                 cmd.Append(wxT(" --schema ") + commandLineCleanOption(object->GetSchema()->GetQuotedIdentifier(), true));
-            }
         }
 
         if (settings->GetIgnoreVersion())
-- 
Sent via pgadmin-hackers mailing list (pgadmin-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgadmin-hackers

Reply via email to