提交 bdb0af45 编写于 作者: S serge-rider

#1310 MySQL table create fix

上级 8b439892
......@@ -95,7 +95,11 @@ public abstract class MySQLTableBase extends JDBCTable<MySQLDataSource, MySQLCat
public Collection<MySQLTableColumn> getAttributes(@NotNull DBRProgressMonitor monitor)
throws DBException
{
List<MySQLTableColumn> columns = new ArrayList<>(getContainer().tableCache.getChildren(monitor, getContainer(), this));
List<MySQLTableColumn> childColumns = getContainer().tableCache.getChildren(monitor, getContainer(), this);
if (childColumns == null) {
return Collections.emptyList();
}
List<MySQLTableColumn> columns = new ArrayList<>(childColumns);
columns.sort(DBUtils.orderComparator());
return columns;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册