Uploaded image for project: 'Commons DbUtils'
  1. Commons DbUtils
  2. DBUTILS-49

QueryRunner - fillStatement method does not work for PostgreSQL database drivers

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.1
    • None
    • None
    • Windows XP, Centos (Linux)

    Description

      QueryRunner - fillStatement method does not work for PostgreSQL database drivers. PostgreSQL database drivers need to the java.sql.Type to be specified on the PreparedStatement.setObject method (as the 3rd parameter). But the QueryRunner - fillStatement does not you to specify the java.sql.Type as the third parameter on the PreparedStatement.setObject method. See the particular line I'm referred to in the method below.

      stmt.setObject(i + 1, params[i]);

      Attachments

        Activity

          People

            Unassigned Unassigned
            kehoec Cullen Kehoe
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: