diff --git a/rider-core/src/main/java/com/github/database/rider/core/dataset/DataSetExecutorImpl.java b/rider-core/src/main/java/com/github/database/rider/core/dataset/DataSetExecutorImpl.java
index <HASH>..<HASH> 100644
--- a/rider-core/src/main/java/com/github/database/rider/core/dataset/DataSetExecutorImpl.java
+++ b/rider-core/src/main/java/com/github/database/rider/core/dataset/DataSetExecutorImpl.java
@@ -641,7 +641,11 @@ public class DataSetExecutorImpl implements DataSetExecutor {
                         + e.getCause());
             }
         }
-        enableConstraints();
+
+        // enabling constraints only if `disableConstraints == false`
+        if(!config.isDisableConstraints()) {
+            enableConstraints();
+        }
 
     }
#<I> - Enabling constraints only if `disableConstraints == false`