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

QueryRunner - fillStatement method does not work for PostgreSQL database drivers

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.1
    • Fix Version/s: None
    • Labels:
      None
    • Environment:

      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

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

              Dates

              • Created:
                Updated:
                Resolved: