提交 a86d77e7 编写于 作者: S Serge Rider

#1592 Data container query text fix

上级 40263b3c
......@@ -1560,6 +1560,7 @@ public class SQLEditor extends SQLEditorBase implements
}
if (export) {
// Assign current job from active query and open wizard
resultsContainer.lastGoodQuery = null;
curJob = job;
ActiveWizardDialog dialog = new ActiveWizardDialog(
getSite().getWorkbenchWindow(),
......@@ -1907,7 +1908,9 @@ public class SQLEditor extends SQLEditorBase implements
@Override
public String getName()
{
String name = lastGoodQuery == null ? null : lastGoodQuery.getOriginalText();
String name = lastGoodQuery != null ?
lastGoodQuery.getOriginalText() :
(query == null ? null : query.getOriginalText());
if (name == null) {
name = "SQL";
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册