Skip to content
This repository was archived by the owner on Feb 16, 2021. It is now read-only.
This repository was archived by the owner on Feb 16, 2021. It is now read-only.

Select action swallows columns with same name #18

Open
@diega

Description

@diega

If you select two columns from different tables with the same name, the result will contain only one of them.
My first attempt after detecting this was to define an alias for each column, but unfortunately commons-dbutils:commons-dbutils:1.5 doesn't use column labels for converting resultSets to maps but the original, potentially collisionable, name, as you can see in DBUTILS-100.

Dunno which could be the path from the module to solve this, one option is to move to commons-dbutils:commons-dbutils:1.6-SNAPSHOT, or maybe just extend org.apache.commons.dbutils.RowProcessor, override the toMap method and pass it in the contructor of org.apache.commons.dbutils.handlers.LimitedMapListHandler on com.bloidonia.vertx.mods.JdbcProcessor@270

Just let me know what do you think about this, and if you don't have time to apply this changes I can make you a PR.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions