This commit is contained in:
levinsv 2019-03-11 22:34:47 +05:00
parent 96a96b448c
commit 0bf6ff6c60
6 changed files with 13 additions and 4 deletions

View file

@ -47,7 +47,7 @@ This text Russian language.
- autocomplite: добавлены имена функций, и возможность подставлять имена колонок таблиц из поля FROM
- при наборе имени функции появляется перечень параметров этой функции
28.12.2010
28.12.2018
- выполнен переход на wxWidgets 3.0 версия exe файла будет находиться Release_(3.0)
- в текстовом представлении плана можно сворачивать узлы
- построении плана с замерами в заголовках строк указывается процент времени выполнения узла (только операции узла но не вложенных узлов)
@ -65,5 +65,8 @@ This text Russian language.
- добавлено копирование sql в html формате(с сохранением цвета)
- в вывод SQL инструкций для таблиц добавлен закомментированый перечень колонок с типами
11.03.2019
- исправлено отображение foreign table

Binary file not shown.

View file

@ -1231,7 +1231,12 @@ void ctlSQLBox::Copy() {
//str.append(str[k].GetValue());
l=1;
if (!selText[k].IsAscii()) l++;
str+=selText[k];
int s=0;
if (selText[k].GetValue()==9) s=5;
if (selText[k].GetValue()==32) s=1;
if (s>0) for (int tt=0;tt<s;tt++) str+=wxT("&nbsp;");
else str+=selText[k];
if (str.EndsWith(wxT("\r\n"))) str+=wxT("<br>");
startp=startp+l;
k++;

View file

@ -651,6 +651,7 @@ frmQuery::frmQuery(frmMain *form, const wxString &_title, pgConn *_conn, const w
else if (!query.IsNull())
{
sqlQuery->SetText(query);
SetLineEndingStyle();
sqlQuery->Colourise(0, query.Length());
wxSafeYield(); // needed to process sqlQuery modify event
sqlQuery->SetChanged(false);

View file

@ -360,7 +360,7 @@ pgObject *pgForeignTableFactory::CreateObjects(pgCollection *collection, ctlTree
wxT(" FROM pg_class c\n")
wxT(" JOIN pg_foreign_table ft ON c.oid=ft.ftrelid\n")
wxT(" LEFT OUTER JOIN pg_foreign_server fs ON ft.ftserver=fs.oid\n")
wxT(" LEFT OUTER JOIN pg_description des ON (des.objoid=c.oid AND des.classoid='pg_class'::regclass)\n")
wxT(" LEFT OUTER JOIN pg_description des ON (des.objoid=c.oid AND des.classoid='pg_class'::regclass AND des.objsubid=0)\n")
wxT(" WHERE c.relnamespace = ") + collection->GetSchema()->GetOidStr() + wxT("\n")
+ restriction +
wxT(" ORDER BY c.relname");

View file

@ -2052,7 +2052,7 @@ if (1==0) {
pgaFactory *ff=oo->GetFactory();
fn=ff->GetTypeName();
fn=oo->GetName();
if (fn==wxT("history__0102")) {
if (fn==wxT("debug*history__0102")) {
fn=oo->GetFullName();
pgaFactory *ff=oo->GetFactory();
fn=ff->GetTypeName();