~ubuntu-branches/ubuntu/utopic/pgadmin3/utopic-proposed

« back to all changes in this revision

Viewing changes to pgadmin/dlg/dlgExtTable.cpp

  • Committer: Package Import Robot
  • Author(s): Christoph Berg
  • Date: 2013-09-10 16:16:38 UTC
  • mfrom: (1.3.4)
  • Revision ID: package-import@ubuntu.com-20130910161638-wwup1q553ylww7dr
Tags: 1.18.0-1
* New upstream release.
* Don't install /usr/bin/png2c anymore.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
//
3
3
// pgAdmin III - PostgreSQL Tools
4
4
//
5
 
// Copyright (C) 2002 - 2012, The pgAdmin Development Team
 
5
// Copyright (C) 2002 - 2013, The pgAdmin Development Team
6
6
// This software is released under the PostgreSQL Licence
7
7
//
8
8
// dlgExtTable.cpp - Greenplum Externtal Table Property
32
32
 
33
33
BEGIN_EVENT_TABLE(dlgExtTable, dlgSecurityProperty)
34
34
        EVT_STC_MODIFIED(XRCID("txtSqlBox"),            dlgProperty::OnChangeStc)
35
 
        EVT_BUTTON(wxID_APPLY,                          dlgExtTable::OnApply)
36
35
END_EVENT_TABLE();
37
36
 
38
37
 
165
164
                return true;
166
165
}
167
166
 
168
 
void dlgExtTable::OnApply(wxCommandEvent &ev)
169
 
{
170
 
        dlgProperty::OnApply(ev);
171
 
 
172
 
        wxString sql = wxT("SELECT xmin FROM pg_class WHERE oid = ") + extTable->GetOidStr();
173
 
        extTable->iSetXid(StrToOid(connection->ExecuteScalar(sql)));
174
 
}
175