mirror of
https://github.com/levinsv/pgadmin3.git
synced 2026-05-15 14:15:49 -06:00
fix without patch
Приведение в соответствие с github Патч делать не нужно.
This commit is contained in:
parent
bdfca63db0
commit
9e9bfef8b8
56 changed files with 512 additions and 505 deletions
|
|
@ -30,7 +30,7 @@ BEGIN_EVENT_TABLE(ctlSQLGrid, wxGrid)
|
|||
EVT_GRID_COL_SIZE(ctlSQLGrid::OnGridColSize)
|
||||
EVT_GRID_LABEL_LEFT_CLICK(ctlSQLGrid::OnLabelClick)
|
||||
EVT_GRID_CELL_RIGHT_CLICK( ctlSQLGrid::OnCellRightClick)
|
||||
EVT_PAINT( ctlSQLGrid::OnPaint )
|
||||
//EVT_PAINT( ctlSQLGrid::OnPaint )
|
||||
END_EVENT_TABLE()
|
||||
|
||||
IMPLEMENT_DYNAMIC_CLASS(ctlSQLGrid, wxGrid)
|
||||
|
|
@ -521,7 +521,7 @@ int ctlSQLGrid::Copy(int gensql)
|
|||
copied = copied + (y2 - y1 + 1);
|
||||
}
|
||||
if (generatesql > 1) {
|
||||
auto &g = m.getmap();
|
||||
auto g = m.getmap();
|
||||
wxArrayInt cols;
|
||||
int maxr = g.size();
|
||||
int i = 1;
|
||||
|
|
@ -557,7 +557,7 @@ int ctlSQLGrid::Copy(int gensql)
|
|||
{
|
||||
wxGridCellCoords& coords = cord[n];
|
||||
//wxString msg;
|
||||
//msg.Printf(wxT("Координаты выбраных ячеек row=%d col=%d.\n"), coords.GetRow(), coords.GetCol());
|
||||
//msg.Printf(wxT("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> row=%d col=%d.\n"), coords.GetRow(), coords.GetCol());
|
||||
//wxMessageBox(msg, wxT("About coord"), wxOK | wxICON_INFORMATION, this);
|
||||
int r = coords.GetRow();
|
||||
if (r == curr_row) {
|
||||
|
|
@ -922,7 +922,7 @@ int recurse(ctlSQLGrid *g, int pos,int row, double &transfer) {
|
|||
//
|
||||
lastnode=0;
|
||||
if (text.at(p)=='-') {
|
||||
// посчитаем время работы узла
|
||||
// <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
double m=1;
|
||||
// -> Nested Loop (cost=205.13..273.44 rows=4 width=188) (actual time=13.157..13.157 rows=0 loops=1)
|
||||
wxRegEx foundstr(wxT("actual time=.*?\\.\\.([0-9.]+).*?loops=([0-9]+)\\)"),wxRE_ADVANCED);
|
||||
|
|
@ -945,7 +945,7 @@ int recurse(ctlSQLGrid *g, int pos,int row, double &transfer) {
|
|||
continue;
|
||||
} if (p<pos) {
|
||||
// end level
|
||||
// leveltime содержит время сумаррное время работы узлов этого уровня
|
||||
// leveltime <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
transfer=leveltime;
|
||||
return row;
|
||||
} if (p>pos) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue