Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.0
    • Fix Version/s: None
    • Labels:
      None

      Description

      It's 2013 (don't read before 2013) and we should have the ability to used named params instead of just position params. Because Oracle uses colon for something or another, we should handle both #param and :param.

        Activity

        Hide
        Simone Tripodi added a comment -

        I LOVE the idea - I had a patched version of DbUtils to support that, passing parameters in Beans/Map<String, Object> before switching to MyBatis! - but I am worried that this feature would be out of DbUtils scope...

        Anyway, it shouldn't hurt and should keep the backward compatibility, so I am +1

        Show
        Simone Tripodi added a comment - I LOVE the idea - I had a patched version of DbUtils to support that, passing parameters in Beans/ Map<String, Object> before switching to MyBatis ! - but I am worried that this feature would be out of DbUtils scope... Anyway, it shouldn't hurt and should keep the backward compatibility, so I am +1
        Hide
        Michael Osipov added a comment -

        That would be awesome. Springs NamedJdbcTemplate is very handy. I don't know where #param comes from but insert into table values(:name, :status) would be very nice.

        Show
        Michael Osipov added a comment - That would be awesome. Springs NamedJdbcTemplate is very handy. I don't know where #param comes from but insert into table values(:name, :status) would be very nice.
        Hide
        William R. Speirs added a comment -

        Named params were added in r1450009 (and subsequent revisions: r1450376). Please take a look at my implementation and provide feedback: http://svn.apache.org/viewvc/commons/proper/dbutils/branches/2_0/

        Thanks in advance...

        Show
        William R. Speirs added a comment - Named params were added in r1450009 (and subsequent revisions: r1450376). Please take a look at my implementation and provide feedback: http://svn.apache.org/viewvc/commons/proper/dbutils/branches/2_0/ Thanks in advance...

          People

          • Assignee:
            William R. Speirs
            Reporter:
            William R. Speirs
          • Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:

              Development