[teiid-issues] [JBoss JIRA] (TEIID-2307) Issue in InsertResolver, using wrong iterator

Van Halbert (JIRA) jira-events at lists.jboss.org
Mon Nov 12 17:47:18 EST 2012


     [ https://issues.jboss.org/browse/TEIID-2307?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Work on TEIID-2307 started by Van Halbert.

> Issue in InsertResolver, using wrong iterator
> ---------------------------------------------
>
>                 Key: TEIID-2307
>                 URL: https://issues.jboss.org/browse/TEIID-2307
>             Project: Teiid
>          Issue Type: Bug
>          Components: Query Engine
>    Affects Versions: 8.3
>            Reporter: Van Halbert
>            Assignee: Van Halbert
>             Fix For: 8.3
>
>
> The InsertResolver is referencing the wrong iterator.  A NoSuchElement is being thrown when it tries to process this section of the code:
>          Iterator<ElementSymbol> defaultIter = insertElmnts.iterator();
>          while(defaultIter.hasNext()) {
> -               ElementSymbol next = varIter.next();
> +               ElementSymbol next = defaultIter.next();
>                         ElementSymbol varSymbol = next.clone();
>              varSymbol.getGroupSymbol().setName(ProcedureReservedWords.CHANGING);
>              varSymbol.setType(DataTypeManager.DefaultDataClasses.BOOLEAN);
> (~/RedHat/github/teiid) unknown001cfb5baa3b $ 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the teiid-issues mailing list