Uploaded image for project: 'Derby'
  1. Derby
  2. DERBY-1494

PreparedStatement.setNull(int, int) checks type compatibility on embedded, but not on the client

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 10.2.1.6
    • 10.3.1.4
    • JDBC
    • None

    Description

      When PreparedStatement.setNull(int, int) is called, the embedded driver will check whether the sqlType parameter specifies a type which is compatible with the actual parameter type. If the types are not compatible, an exception is thrown. The client driver does not check whether the types are compatible, and does not throw an exception.

      Both drivers behave according to the spec, but one of them should be changed to match the other one.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              knutanders Knut Anders Hatlen
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: