Add LogPane color

Добавлена подсветка новых строк в логе. Изменены читающие функции для новых версий PG
This commit is contained in:
lsv 2020-08-31 10:58:02 +05:00
parent de2cf5d0c8
commit 71629f4355
3 changed files with 59 additions and 16 deletions

View file

@ -556,6 +556,7 @@ bool pgConn::HasFeature(int featureNo, bool forceCheck)
{
wxString proname = set->GetVal(wxT("proname"));
long pronargs = set->GetLong(wxT("pronargs"));
if (BackendMinimumVersion(9, 6)) features[FEATURE_FILEREAD] = true;
if (proname == wxT("pg_tablespace_size") && pronargs == 1 && set->GetLong(wxT("arg0")) == 26)
features[FEATURE_SIZE] = true;