mirror of
https://github.com/levinsv/pgadmin3.git
synced 2026-06-30 06:12:11 -06:00
fix compile Microsoft VS.
Оптимизация для linux конфликтует с компиляцией на VS. Добавлено усиление проверки версии БД.
This commit is contained in:
parent
c5238137e6
commit
71f05e1f82
2 changed files with 3 additions and 4 deletions
|
|
@ -510,7 +510,9 @@ bool pgConn::BackendMinimumVersion(int major, int minor)
|
|||
}
|
||||
isPgProEnt=false;
|
||||
wxString ed=ExecuteScalar(wxT("select to_regproc('pgpro_edition')::text"));
|
||||
if (!ed.IsEmpty()) ed=ExecuteScalar(wxT("select pgpro_edition()"));
|
||||
if (ed=="pgpro_edition") {
|
||||
ed=ExecuteScalar(wxT("select pgpro_edition()"));
|
||||
}
|
||||
if (ed==wxT("enterprise")) isPgProEnt=true;
|
||||
|
||||
isGreenplum = version.Upper().Matches(wxT("*GREENPLUM DATABASE*"));
|
||||
|
|
|
|||
|
|
@ -8,8 +8,6 @@
|
|||
// frmDatabaseDesigner.cpp - The database designer form
|
||||
//
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
#ifdef DATABASEDESIGNER
|
||||
|
||||
#include "pgAdmin3.h"
|
||||
// wxWindows headers
|
||||
#include <wx/wx.h>
|
||||
|
|
@ -927,4 +925,3 @@ wxWindow *databaseDesignerFactory::StartDialog(frmMain *form, pgObject *obj)
|
|||
qry = obj->GetSql(form->GetBrowser());
|
||||
return StartDialogDesigner(form, obj, qry);
|
||||
}
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue