mirror of
https://github.com/levinsv/pgadmin3.git
synced 2026-05-15 14:15:49 -06:00
fix issue #48
При обработке заголовка файла бекапа, не все данные обрабатывались правильно. Мелкие исправления в dlgTransformText.
This commit is contained in:
parent
7dea1432fc
commit
3a01ed237b
3 changed files with 18 additions and 1 deletions
|
|
@ -718,6 +718,22 @@ void frmRestore::OnEndProcess(wxProcessEvent &ev)
|
|||
if (str.Find("INDEX ATTACH") > 0)
|
||||
type = type + " " + col.GetNextToken();
|
||||
}
|
||||
else if (type == wxT("PUBLICATION"))
|
||||
{
|
||||
// type for
|
||||
//
|
||||
if (str.Find("PUBLICATION TABLES IN SCHEMA") > 0)
|
||||
type = type + " " + col.GetNextToken() + " " + col.GetNextToken() + " " + col.GetNextToken();
|
||||
else if (str.Find("PUBLICATION TABLE") > 0)
|
||||
type = type + " " + col.GetNextToken();
|
||||
}
|
||||
else if (type == wxT("EVENT"))
|
||||
{
|
||||
// type for EVENT TRIGGER
|
||||
//
|
||||
if (str.Find("EVENT TRIGGER") > 0)
|
||||
type = type + " " + col.GetNextToken();
|
||||
}
|
||||
else if (type == wxT("TABLE"))
|
||||
{
|
||||
if (col.CountTokens() == 4)
|
||||
|
|
|
|||
|
|
@ -359,11 +359,12 @@ void dlgTransformText::AppendTextControl(ctlStyledText* ctrl, const wxString app
|
|||
limitChar -= appendtext.length();
|
||||
else
|
||||
isLimit = true;
|
||||
if (!isLimit) ctrl->AppendText(appendtext);
|
||||
}
|
||||
else {
|
||||
strResult.Append(appendtext);
|
||||
ctrl->AppendText(appendtext);
|
||||
}
|
||||
if (!isLimit) ctrl->AppendText(appendtext);
|
||||
}
|
||||
wxJSONValue dlgTransformText::FillConfig() {
|
||||
wxString s;
|
||||
|
|
|
|||
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue