Github user ijokarumawak commented on a diff in the pull request:

    https://github.com/apache/nifi/pull/3113#discussion_r228789994
  
    --- Diff: 
nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/PutSQL.java
 ---
    @@ -134,6 +134,14 @@
                 
.expressionLanguageSupported(ExpressionLanguageScope.FLOWFILE_ATTRIBUTES)
                 .build();
     
    +    static final PropertyDescriptor AUTO_COMMIT = new 
PropertyDescriptor.Builder()
    +            .name("database-session-autocommit")
    +            .displayName("Database session autocommit value")
    +            .description("The autocommit mode to set on the database 
connection being used.")
    +            .allowableValues("true", "false")
    +            .defaultValue("false")
    +            .build();
    --- End diff --
    
    @viswaug IIRC disable auto-commit is required to support "Support 
Fragmented Transactions" and/or "Rollback On Failure".  We need to implement 
`customValidate` method, too, if we're going to make auto-commit configurable. 
If auto-commit is enabled, the processor should not allow using "Support 
Fragmented Transactions" and/or "Rollback On Failure".


---

Reply via email to