При обработке заголовка файла бекапа, не все данные обрабатывались правильно.
Мелкие исправления в dlgTransformText.
This commit is contained in:
lsv 2024-10-11 17:04:35 +05:00 committed by lsv
parent 7dea1432fc
commit 3a01ed237b
3 changed files with 18 additions and 1 deletions

View file

@ -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)

View file

@ -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.