提交 005b4560 编写于 作者: J jurgen

Mongo JS execute. SQL editor tabs naming fix

Former-commit-id: cfdfe57f
上级 ef5c9638
Data transfer DB->DB. Set default export mapping initially
DBCStatement-> executeQuery + executeUpdate
Intro plugin
Permanent download links (ln -s after build)
......
......@@ -86,9 +86,11 @@ public class BasicSQLDialect implements SQLDialect {
public void addKeywords(Collection<String> set, DBPKeywordType type)
{
for (String keyword : set) {
reservedWords.add(keyword);
allKeywords.put(keyword, type);
if (set != null) {
for (String keyword : set) {
reservedWords.add(keyword);
allKeywords.put(keyword, type);
}
}
}
......
......@@ -542,9 +542,10 @@ public class SQLQueryJob extends DataSourceJob
}
}
*/
if (!CommonUtils.isEmpty(sourceName)) {
result.setResultSetName(sourceName);
if (CommonUtils.isEmpty(sourceName)) {
sourceName = "Result";
}
result.setResultSetName(sourceName);
}
long fetchStartTime = System.currentTimeMillis();
......
......@@ -1351,8 +1351,10 @@ public class SQLEditor extends SQLEditorBase
if (results != null) {
CTabItem tabItem = results.tabItem;
if (!tabItem.isDisposed()) {
if (!CommonUtils.isEmpty(result.getResultSetName())) {
tabItem.setText(result.getResultSetName());
//int queryIndex = queryProcessors.indexOf(queryProcessor);
String resultSetName = result.getResultSetName();
if (!CommonUtils.isEmpty(resultSetName)) {
tabItem.setText(resultSetName);
}/* else {
int queryIndex = queryProcessors.indexOf(queryProcessor);
tabItem.setText(
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册