Ticket #164: ticket164_v1.patch
| File ticket164_v1.patch, 5.1 KB (added by gleu, 2 years ago) |
|---|
-
pgadmin/include/dlg/dlgProperty.h
112 112 void OnChangeReadOnly(wxCommandEvent& event); 113 113 114 114 protected: 115 void AddGroups(ctlComboBoxFix *comboBox=0); 115 116 void AddUsers(ctlComboBoxFix *cb1, ctlComboBoxFix *cb2=0); 116 117 void FillCombobox(const wxString &query, ctlComboBoxFix *cb1, ctlComboBoxFix *cb2=0); 117 118 void PrepareTablespace(ctlComboBoxFix *cb, const OID current=0); -
pgadmin/dlg/dlgExtTable.cpp
59 59 { 60 60 int returncode; 61 61 62 AddGroups( );62 AddGroups(cbOwner); 63 63 AddUsers(cbOwner); 64 64 65 65 if (extTable) -
pgadmin/dlg/dlgLanguage.cpp
60 60 if (!connection->BackendMinimumVersion(7, 5)) 61 61 txtComment->Disable(); 62 62 63 AddGroups( );63 AddGroups(cbOwner); 64 64 AddUsers(cbOwner); 65 65 if (!connection->BackendMinimumVersion(8, 3)) 66 66 cbOwner->Disable(); -
pgadmin/dlg/dlgProperty.cpp
306 306 { 307 307 if (!GetObject()) 308 308 cbOwner->Append(wxEmptyString); 309 AddGroups(cbowner); 309 310 AddUsers(cbowner); 310 311 } 311 312 if (txtOid) … … 546 547 } 547 548 548 549 550 void dlgProperty::AddGroups(ctlComboBoxFix *combo) 551 { 552 if (connection->BackendMinimumVersion(8, 1)) 553 { 554 FillCombobox(wxT("SELECT rolname FROM pg_roles WHERE NOT rolcanlogin ORDER BY 1"), combo); 555 } 556 else 557 { 558 FillCombobox(wxT("SELECT groname FROM pg_group ORDER BY 1"), combo); 559 } 560 } 561 562 549 563 void dlgProperty::PrepareTablespace(ctlComboBoxFix *cb, const OID current) 550 564 { 551 565 wxASSERT(cb != 0); -
pgadmin/dlg/dlgFunction.cpp
177 177 if (!isBackendMinVer84) 178 178 txtArgDefVal->Disable(); 179 179 180 AddGroups( );180 AddGroups(cbOwner); 181 181 AddUsers(cbOwner); 182 182 183 183 lstArguments->AddColumn(_("Type"), 60); -
pgadmin/dlg/dlgTable.cpp
205 205 { 206 206 if (!table) 207 207 cbOwner->Append(wxT("")); 208 AddGroups( );208 AddGroups(cbOwner); 209 209 AddUsers(cbOwner); 210 210 PrepareTablespace(cbTablespace); 211 211 PopulateDatatypeCache(); -
pgadmin/dlg/dlgPackage.cpp
65 65 66 66 cbOwner->Disable(); 67 67 68 AddGroups( );68 AddGroups(cbOwner); 69 69 AddUsers(cbOwner); 70 70 71 71 if (package) -
pgadmin/dlg/dlgTablespace.cpp
77 77 { 78 78 if (!tablespace) 79 79 cbOwner->Append(wxEmptyString); 80 AddGroups( );80 AddGroups(cbOwner); 81 81 AddUsers(cbOwner); 82 82 83 83 pgSet *set; -
pgadmin/dlg/dlgDatabase.cpp
107 107 if (!database) 108 108 cbOwner->Append(wxT("")); 109 109 110 AddGroups( );110 AddGroups(cbOwner); 111 111 AddUsers(cbOwner); 112 112 113 113 if (connection->BackendMinimumVersion(8,5)) -
pgadmin/dlg/dlgSequence.cpp
66 66 { 67 67 if (!sequence) 68 68 cbOwner->Append(wxEmptyString); 69 AddGroups( );69 AddGroups(cbOwner); 70 70 AddUsers(cbOwner); 71 71 72 72 if (sequence) -
pgadmin/dlg/dlgView.cpp
56 56 57 57 int dlgView::Go(bool modal) 58 58 { 59 AddGroups( );59 AddGroups(cbOwner); 60 60 AddUsers(cbOwner); 61 61 62 62 if (view) -
pgadmin/dlg/dlgSchema.cpp
47 47 if (!schema) 48 48 cbOwner->Append(wxT("")); 49 49 50 AddGroups( );50 AddGroups(cbOwner); 51 51 AddUsers(cbOwner); 52 52 if (schema) 53 53 {
