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

#2209 PG: data export config (always do in transaction)

上级 91649b95
......@@ -43,6 +43,7 @@ import org.jkiss.dbeaver.model.net.DBWHandlerConfiguration;
import org.jkiss.dbeaver.model.runtime.DBRProgressMonitor;
import org.jkiss.dbeaver.model.struct.*;
import org.jkiss.dbeaver.runtime.net.DefaultCallbackHandler;
import org.jkiss.dbeaver.tools.transfer.IDataTransferProducer;
import org.jkiss.utils.CommonUtils;
import java.sql.Connection;
......@@ -115,6 +116,14 @@ public class PostgreDataSource extends JDBCDataSource implements DBSObjectSelect
props.put("sslpasswordcallback", DefaultCallbackHandler.class.getName());
}
@Override
public Object getDataSourceFeature(String featureId) {
if (IDataTransferProducer.FEATURE_FORCE_TRANSACTIONS.equals(featureId)) {
return true;
}
return super.getDataSourceFeature(featureId);
}
protected void initializeContextState(@NotNull DBRProgressMonitor monitor, @NotNull JDBCExecutionContext context, boolean setActiveObject) throws DBCException {
if (setActiveObject) {
PostgreDatabase activeDatabase = getDefaultObject();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册