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

dbeaver/dbeaver-ee#1002 Athena driver: mark as read-only. Data viewer readonly connections mark.

上级 137e8c72
......@@ -40,6 +40,7 @@
<parameter name="supports-indexes" value="false"/>
<parameter name="omit-catalog" value="true"/>
<property name="@dbeaver-default-resultset.maxrows.sql" value="true"/>
<parameter name="read-only-data" value="true"/>
</driver>
</drivers>
......
......@@ -1800,6 +1800,10 @@ public class ResultSetViewer extends Viewer
@Override
public boolean isAllAttributesReadOnly() {
DBCExecutionContext executionContext = getExecutionContext();
if (executionContext != null && executionContext.getDataSource().getInfo().isReadOnlyData()) {
return true;
}
if (model.getAttributes().length == 0) {
return false;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册