Ticket #164: ticket164_v1.patch

File ticket164_v1.patch, 5.1 KB (added by gleu, 2 years ago)

v1 patch

  • pgadmin/include/dlg/dlgProperty.h

     
    112112    void OnChangeReadOnly(wxCommandEvent& event); 
    113113 
    114114protected: 
     115    void AddGroups(ctlComboBoxFix *comboBox=0); 
    115116    void AddUsers(ctlComboBoxFix *cb1, ctlComboBoxFix *cb2=0); 
    116117    void FillCombobox(const wxString &query, ctlComboBoxFix *cb1, ctlComboBoxFix *cb2=0); 
    117118    void PrepareTablespace(ctlComboBoxFix *cb, const OID current=0); 
  • pgadmin/dlg/dlgExtTable.cpp

     
    5959{ 
    6060    int returncode; 
    6161     
    62     AddGroups(); 
     62    AddGroups(cbOwner); 
    6363    AddUsers(cbOwner); 
    6464 
    6565    if (extTable) 
  • pgadmin/dlg/dlgLanguage.cpp

     
    6060    if (!connection->BackendMinimumVersion(7, 5)) 
    6161        txtComment->Disable(); 
    6262 
    63     AddGroups(); 
     63    AddGroups(cbOwner); 
    6464    AddUsers(cbOwner); 
    6565    if (!connection->BackendMinimumVersion(8, 3)) 
    6666        cbOwner->Disable(); 
  • pgadmin/dlg/dlgProperty.cpp

     
    306306    { 
    307307        if (!GetObject()) 
    308308            cbOwner->Append(wxEmptyString); 
     309        AddGroups(cbowner); 
    309310        AddUsers(cbowner); 
    310311    } 
    311312    if (txtOid) 
     
    546547} 
    547548 
    548549 
     550void 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 
    549563void dlgProperty::PrepareTablespace(ctlComboBoxFix *cb, const OID current) 
    550564{ 
    551565    wxASSERT(cb != 0); 
  • pgadmin/dlg/dlgFunction.cpp

     
    177177    if (!isBackendMinVer84) 
    178178        txtArgDefVal->Disable(); 
    179179 
    180     AddGroups(); 
     180    AddGroups(cbOwner); 
    181181    AddUsers(cbOwner); 
    182182 
    183183    lstArguments->AddColumn(_("Type"), 60); 
  • pgadmin/dlg/dlgTable.cpp

     
    205205{ 
    206206    if (!table) 
    207207        cbOwner->Append(wxT("")); 
    208     AddGroups(); 
     208    AddGroups(cbOwner); 
    209209    AddUsers(cbOwner); 
    210210    PrepareTablespace(cbTablespace); 
    211211    PopulateDatatypeCache(); 
  • pgadmin/dlg/dlgPackage.cpp

     
    6565 
    6666    cbOwner->Disable(); 
    6767 
    68     AddGroups(); 
     68    AddGroups(cbOwner); 
    6969    AddUsers(cbOwner); 
    7070 
    7171    if (package) 
  • pgadmin/dlg/dlgTablespace.cpp

     
    7777{ 
    7878    if (!tablespace) 
    7979        cbOwner->Append(wxEmptyString); 
    80     AddGroups(); 
     80    AddGroups(cbOwner); 
    8181    AddUsers(cbOwner); 
    8282 
    8383    pgSet *set; 
  • pgadmin/dlg/dlgDatabase.cpp

     
    107107    if (!database) 
    108108        cbOwner->Append(wxT("")); 
    109109 
    110     AddGroups(); 
     110    AddGroups(cbOwner); 
    111111    AddUsers(cbOwner); 
    112112 
    113113    if (connection->BackendMinimumVersion(8,5)) 
  • pgadmin/dlg/dlgSequence.cpp

     
    6666{ 
    6767    if (!sequence) 
    6868        cbOwner->Append(wxEmptyString); 
    69     AddGroups(); 
     69    AddGroups(cbOwner); 
    7070    AddUsers(cbOwner); 
    7171 
    7272    if (sequence) 
  • pgadmin/dlg/dlgView.cpp

     
    5656 
    5757int dlgView::Go(bool modal) 
    5858{ 
    59     AddGroups(); 
     59    AddGroups(cbOwner); 
    6060    AddUsers(cbOwner); 
    6161 
    6262    if (view) 
  • pgadmin/dlg/dlgSchema.cpp

     
    4747    if (!schema) 
    4848        cbOwner->Append(wxT("")); 
    4949 
    50     AddGroups(); 
     50    AddGroups(cbOwner); 
    5151    AddUsers(cbOwner); 
    5252    if (schema) 
    5353    {