BUG: pgIndex.cpp

From: P3 Consulting <p3c(at)p3-consulting(dot)net>
To: pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org>
Subject: BUG: pgIndex.cpp
Date: 2005-01-08 10:28:13
Message-ID: 004EA51B-6160-11D9-827D-0003933F0AB6@p3-consulting.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Browse pgadmin-hackers by date

  From Date Subject
Next Message cvs 2005-01-10 15:06:13 CVS Commit by dpage: Update copyright
Previous Message cvs 2005-01-07 15:19:54 CVS Commit by andreas: fix closing QueryTool if FindDlg still open