diff --git a/pgadmin/frm/frmRestore.cpp b/pgadmin/frm/frmRestore.cpp index c1fc503..24dd64a 100644 --- a/pgadmin/frm/frmRestore.cpp +++ b/pgadmin/frm/frmRestore.cpp @@ -655,6 +655,20 @@ void frmRestore::OnEndProcess(wxProcessEvent &ev) type += wxT(" ") + col.GetNextToken(); } } + // In case of statements like DEFAULT ACL DEFAULT PRIVILEGES FOR TABLES + else if (type == wxT("DEFAULT")) + { + // We do not expect the 'DEFAULT ' pattern here. + if (col.CountTokens() != 3) + { + type += wxT(" ") + col.GetNextToken(); + if (type != wxT("DEFAULT ACL")) + { + wxLogError(wxString::Format(_("Unexpected DEFAULT statement found: '%s'!"), str.c_str())); + continue; + } + } + } // Column 5 (namespace) // Second interesting information: object's schema