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

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

GitHub user SuJinpei opened a pull request:

    https://github.com/apache/incubator-trafodion/pull/1292

    [TRAFODION-2797] odb variable name conflict

    in function Oload2:
    ```
    static void Oload2(int eid)
    {
    .....
    unsigned int nldr=0, /* number of loaders */
    k=0, /* input file field number */
    m = 0, /* rowset array record number */
    i=0, /* loop variable */
    ....
    size_t i = 0; //<----- the name conflict with outer scope name cause some 
bug
    while (i < len) {
    ...
    for(i=0;i<nldr;i++)
    { ... }
    }
    }
    ```

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/SuJinpei/incubator-trafodion trafodion-2797

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/incubator-trafodion/pull/1292.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #1292
    
----
commit f878f5e7a92ed0f5246bd6c890cbf4b622db52fb
Author: SuJinpei <873118...@qq.com>
Date:   2017-11-07T00:57:48Z

    fix TRAFODION-2797

----


> odb variable name conflict
> --------------------------
>
>                 Key: TRAFODION-2797
>                 URL: https://issues.apache.org/jira/browse/TRAFODION-2797
>             Project: Apache Trafodion
>          Issue Type: Bug
>          Components: db-utility-odb
>            Reporter: 苏锦佩
>
> in function Oload2:
> static void Oload2(int eid)
> {
>        .....
>        unsigned int nldr=0,        /* number of loaders */
>                  k=0,           /* input file field number */
>                  m = 0,         /* rowset array record number */
>                  i=0,           /* loop variable */
>         ....
>         size_t i = 0;   {color:red}<----- the name conflict with outer scope 
> name cause some bug{color}
>         while (i < len) {
>              ...
>              for(i=0;i<nldr;i++){
>              ...
>              }
>          }
> }



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to