[ 
https://issues.apache.org/jira/browse/TRAFODION-37?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14628583#comment-14628583
 ] 

ASF GitHub Bot commented on TRAFODION-37:
-----------------------------------------

Github user arvind-narain commented on a diff in the pull request:

    https://github.com/apache/incubator-trafodion/pull/28#discussion_r34718933
  
    --- Diff: core/conn/jdbc_type2/native/CSrvrConnect.cpp ---
    @@ -338,7 +338,10 @@ SRVR_STMT_HDL *SRVR_CONNECT_HDL::createSrvrStmt(
         short   sqlStmtType,
         BOOL    useDefaultDesc,
         BOOL    internalStmt,
    -    long stmtId)
    +    long stmtId,
    +    short sqlQueryType,      // If sqlQueryType indicates it's SPJ 
statement, then the member variable
    +    Int32  resultSetIndex,   // resultSetIndex and callStmtId of 
SRVR_STMT_HDL should be initialized
    +    SQLSTMT_ID* callStmtId)  // with these passed in args
     {
         FUNCTION_ENTRY("SRVR_CONNECT_HDL::createSrvrStmt",("..."));
         DEBUG_OUT(DEBUG_LEVEL_ENTRY,("  stmtLabel=%s, sqlcode=0x%08x",
    --- End diff --
    
    Do please add the new parameters -sqlQueryType, resultSetIndex etc.


> Get "ROLLBACK WORK" and "COMMIT WORK" transactions be prepared when T2 driver 
> is establishing connection
> --------------------------------------------------------------------------------------------------------
>
>                 Key: TRAFODION-37
>                 URL: https://issues.apache.org/jira/browse/TRAFODION-37
>             Project: Apache Trafodion
>          Issue Type: Improvement
>            Reporter: RuoYu Zuo
>            Assignee: RuoYu Zuo
>              Labels: features
>
> To make T2 driver supports rowset operation to enhance the performance of 
> batch insert and update, two SQL transactions ("commit" to make a succeeded 
> execution and "rollback" for failure) are required to be prepared in advance, 
> which shall be triggered in executing phase of rowset operation.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to