BUG: pgIndex.cpp - Mailing list pgadmin-hackers

From P3 Consulting
Subject BUG: pgIndex.cpp
Date
Msg-id 004EA51B-6160-11D9-827D-0003933F0AB6@p3-consulting.net
Whole thread Raw
List pgadmin-hackers
            switch (indexes->GetVal(wxT("contype"))[0U])
             {
                 case 0:
                     index = new pgIndex(collection->GetSchema(),
indexes->GetVal(wxT("idxname")));
                     break;
                 case 'p':
                     index = new pgPrimaryKey(collection->GetSchema(),
indexes->GetVal(wxT("idxname")));
                     break;
                 case 'u':
                     index = new pgUnique(collection->GetSchema(),
indexes->GetVal(wxT("idxname")));
                     break;
                 default:
                     index=0;
                     break;
             }
             index->iSetOid(indexes->GetOid(wxT("oid")));

in case of the default branch taken, this code will SIGSEGV

Pascal Pochet


pgadmin-hackers by date:

Previous
From: cvs@developer.pgadmin.org
Date:
Subject: CVS Commit by andreas: fix closing QueryTool if FindDlg still open
Next
From: cvs@developer.pgadmin.org
Date:
Subject: CVS Commit by dpage: Update copyright