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

#4835 Data transfer: export to database, truncate table fix


Former-commit-id: 982afcfd
上级 f018cde7
......@@ -93,7 +93,7 @@ public class DatabaseTransferConsumer implements IDataTransferConsumer<DatabaseC
{
initExporter(session.getProgressMonitor());
if (offset == 0 && settings.isTruncateBeforeLoad() && (containerMapping == null || containerMapping.getMappingType() == DatabaseMappingType.existing)) {
if (offset <= 0 && settings.isTruncateBeforeLoad() && (containerMapping == null || containerMapping.getMappingType() == DatabaseMappingType.existing)) {
// Truncate target tables
if ((targetObject.getSupportedFeatures() & DBSDataManipulator.DATA_TRUNCATE) != 0) {
targetObject.truncateData(
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册