Ticket #6371: osx.diff
File osx.diff, 7.7 KB (added by jyrki.wahlstedt@…, 19 years ago) |
---|
-
pkg/win32/Makefile.am
10 10 EXTRA_DIST = \ 11 11 $(srcdir)/Make.bat \ 12 12 $(srcdir)/README.txt \ 13 $(srcdir)/upgrade.bat \ 13 14 $(srcdir)/resources/banner.bmp \ 14 15 $(srcdir)/resources/new.bmp \ 15 16 $(srcdir)/resources/up.bmp \ -
pkg/win32/upgrade.bat
1 @echo off 2 cls 3 echo This file will upgrade your pgAdmin III installation. 4 echo. 5 echo You must have pgAdmin III v1.4.x installed 6 echo from the official MSI installation to use this upgrade path. 7 echo. 8 echo If pgAdmin III or any of it's components are in use 9 echo a reboot will be required once the upgrade is completed. 10 echo. 11 echo. 12 echo Press Ctrl-C to abort the upgrade or 13 pause 14 15 REM Parameters described: 16 REM /i pgadmin3.msi - pick MSI file to install. All properties 17 REM will be read from existing installation. 18 REM REINSTALLMODE=vamus - reinstall all files, regardless of version. 19 REM This makes sure documentation and other 20 REM non-versioned files are updated. 21 REM REINSTALL=ALL - Reinstall all features that were previously 22 REM installed with the new version. 23 msiexec /i pgadmin3.msi REINSTALLMODE=vamus REINSTALL=ALL /qr -
src/include/ctl/ctlComboBox.h
25 25 public: 26 26 ctlComboBoxFix(wxWindow *wnd, int id, wxPoint pos, wxSize siz, long attr); 27 27 28 #if wxCHECK_VERSION(2,6,2) 28 #if wxCHECK_VERSION(2,6,2) && !defined(__WXMAC__) 29 29 // we have GetCurrentSelection() in wxChoice, implementing the old GetSelection() semantics 30 30 #else 31 31 int GetCurrentSelection() const { return wxComboBox::GetSelection(); } … … 52 52 #ifdef __WXMSW__ 53 53 wxString GetValue() const { return wxGetWindowText(GetHwnd()); } 54 54 #endif 55 56 57 private:58 // to prevent using it; use GetCurrentSelection() instead59 int GetSelection() const { return -1; }60 55 }; 61 56 62 57 class ctlComboBox : public ctlComboBoxFix -
src/schema/pgLanguage.cpp
47 47 if (GetTrusted()) 48 48 sql += wxT("TRUSTED "); 49 49 sql += wxT("PROCEDURAL LANGUAGE '") + GetName() 50 + wxT("'\n HANDLER ") + GetHandlerProc() + wxT(";\n") 50 + wxT("'\n HANDLER ") + GetHandlerProc(); 51 52 if (!GetValidatorProc().IsEmpty()) 53 sql += wxT("\n VALIDATOR ") + GetValidatorProc(); 54 55 sql += wxT(";\n") 51 56 + GetGrant(wxT("X"), wxT("LANGUAGE ") + GetQuotedFullIdentifier()); 52 57 53 58 } -
src/schema/pgSchema.cpp
163 163 164 164 pgSet *schemas = collection->GetDatabase()->ExecuteSet( 165 165 wxT("SELECT CASE WHEN nspname LIKE 'pg\\_temp\\_%%' THEN 1\n") 166 wxT(" WHEN (nsp.oid<") + NumToStr(collection->GetServer()->GetLastSystemOID()) + 167 wxT(" OR nspname like 'pg\\_%') AND nspname != 'public' THEN 0\n") 166 wxT(" WHEN (nspname LIKE 'pg\\_%' OR nspname = 'information_schema') THEN 0\n") 168 167 wxT(" ELSE 3 END AS nsptyp,\n") 169 168 wxT(" nsp.nspname, nsp.oid, pg_get_userbyid(nspowner) AS namespaceowner, nspacl, description,") 170 169 wxT(" has_schema_privilege(nsp.oid, 'CREATE') as cancreate\n") -
src/schema/pgObject.cpp
162 162 bool pgObject::UpdateIcon(ctlTree *browser) 163 163 { 164 164 int icon=GetIconId(); 165 if ( browser->GetItemImage(GetId(), wxTreeItemIcon_Normal) != icon)165 if (GetId() && browser->GetItemImage(GetId(), wxTreeItemIcon_Normal) != icon) 166 166 { 167 167 browser->SetItemImage(GetId(), GetIconId(), wxTreeItemIcon_Normal); 168 168 browser->SetItemImage(GetId(), GetIconId(), wxTreeItemIcon_Selected); -
src/slony/include/slSubscription.h
59 59 60 60 61 61 bool CanCreate(); 62 bool CanDrop(); 62 63 63 64 bool DropObject(wxFrame *frame, ctlTree *browser, bool cascaded); 64 65 wxString GetSql(ctlTree *browser); -
src/slony/slSubscription.cpp
61 61 } 62 62 63 63 64 bool slSubscription::CanDrop() 65 { 66 return GetReceiverId() == GetCluster()->GetLocalNodeID(); 67 } 68 69 64 70 wxString slSubscription::GetSql(ctlTree *browser) 65 71 { 66 72 if (sql.IsNull()) -
src/slony/slNode.cpp
171 171 wxT(" st_last_event_ts - st_last_received_ts AS eventlag,") 172 172 wxT(" ev_seqno, ev_type || ' ' || COALESCE(ev_data1, '') AS hanging\n") 173 173 wxT(" FROM ") + GetCluster()->GetSchemaPrefix() + wxT("sl_status\n") 174 wxT(" LEFT JOIN ") + GetCluster()->GetSchemaPrefix() + wxT("sl_event ON ev_ seqno=\n")174 wxT(" LEFT JOIN ") + GetCluster()->GetSchemaPrefix() + wxT("sl_event ON ev_origin=st_origin AND ev_seqno=\n") 175 175 wxT(" (SELECT MIN(ev_seqno) FROM ") + GetCluster()->GetSchemaPrefix() + wxT("sl_event WHERE ev_seqno > st_last_received)\n") 176 176 wxT(" WHERE st_origin = ") + NumToStr(GetCluster()->GetLocalNodeID()) + wxT("\n") 177 177 wxT(" AND st_received = ") + NumToStr(GetSlId())); … … 331 331 wxT(" CASE WHEN st_lag_num_events > 0 THEN st_last_event_ts - st_last_received_ts END AS eventlag,") 332 332 wxT(" ev_seqno, ev_type || ' ' || COALESCE(ev_data1, '') AS hanging\n") 333 333 wxT(" FROM ") + GetCluster()->GetSchemaPrefix() + wxT("sl_status\n") 334 wxT(" LEFT JOIN ") + GetCluster()->GetSchemaPrefix() + wxT("sl_event ON ev_ seqno=\n")334 wxT(" LEFT JOIN ") + GetCluster()->GetSchemaPrefix() + wxT("sl_event ON ev_origin=st_origin AND ev_seqno=\n") 335 335 wxT(" (SELECT MIN(ev_seqno) FROM ") + GetCluster()->GetSchemaPrefix() + wxT("sl_event WHERE ev_seqno > st_last_received)\n") 336 336 wxT(" WHERE st_origin = ") + NumToStr(GetCluster()->GetLocalNodeID())); 337 337