commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Osipov (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (DBUTILS-114) Order of columns not retained in BasicRowProcessor with HashMap
Date Tue, 13 May 2014 06:10:15 GMT

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

Michael Osipov commented on DBUTILS-114:
----------------------------------------

Actually, there are two options:

1. {{CaseInsensitiveMap}}
2. {{CaseInsensitiveLinkedHashMap}}

I favor the first because it describes the contract but the actual implementation is not of
interest, in my opinion.

> Order of columns not retained in BasicRowProcessor with HashMap
> ---------------------------------------------------------------
>
>                 Key: DBUTILS-114
>                 URL: https://issues.apache.org/jira/browse/DBUTILS-114
>             Project: Commons DbUtils
>          Issue Type: Bug
>    Affects Versions: 1.5, 1.6
>            Reporter: Michael Osipov
>         Attachments: DBUTILS-114.patch
>
>
> The {{CaseInsensitiveHashMap}} extends {{HashMap}}. This means that the order of columns
defined in a select query is not retained when one wants to iterate over the entry set. This
be changed to {{LinkedHashMap}}.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message