Derby
  1. Derby
  2. DERBY-3853

Behaviour of setTypeMap() differs between embedded and client

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 10.5.1.1
    • Fix Version/s: 10.6.1.0
    • Component/s: JDBC
    • Labels:
      None
    • Issue & fix info:
      Newcomer
    • Bug behavior facts:
      Embedded/Client difference

      Description

      On the embedded driver, Connection.setTypeMap() behaves like this (when the connection is not closed):

      • if the map argument is null, throw an SQLException with SQLState XJ081
      • if the map is not null and not empty, throw an SQLException with SQLState 0A000
      • if the map is not null and empty, do nothing

      The behaviour on the client driver is this:

      • always throw an SQLException with SQLState 0A000

      We should try to make the two drivers behave the same way when setTypeMap() is called. (This would also allow us to simplify some of the tests in J2EEDataSourceTest).

      1. releaseNote.html
        4 kB
        Knut Anders Hatlen
      2. DERBY-3853-2.stat
        0.2 kB
        Yun Lee
      3. DERBY-3853-2.patch
        15 kB
        Yun Lee
      4. DERBY-3853-1.stat
        0.2 kB
        Yun Lee
      5. DERBY-3853-1.patch
        3 kB
        Yun Lee

        Issue Links

          Activity

          Gavin made changes -
          Workflow jira [ 12440780 ] Default workflow, editable Closed status [ 12799390 ]
          Dag H. Wanvik made changes -
          Issue & fix info [Release Note Needed] [Newcomer]
          Dag H. Wanvik made changes -
          Component/s Newcomer [ 12310640 ]
          Myrna van Lunteren made changes -
          Affects Version/s 10.5.1.1 [ 12313771 ]
          Affects Version/s 10.5.0.0 [ 12313010 ]
          Knut Anders Hatlen made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Knut Anders Hatlen made changes -
          Attachment releaseNote.html [ 12405238 ]
          Knut Anders Hatlen made changes -
          Status In Progress [ 3 ] Resolved [ 5 ]
          Derby Info [Release Note Needed]
          Fix Version/s 10.6.0.0 [ 12313727 ]
          Resolution Fixed [ 1 ]
          Yun Lee made changes -
          Attachment DERBY-3853-2.patch [ 12404967 ]
          Attachment DERBY-3853-2.stat [ 12404968 ]
          Yun Lee made changes -
          Attachment DERBY-3853-1.patch [ 12404074 ]
          Attachment DERBY-3853-1.stat [ 12404075 ]
          Yun Lee made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          Yun Lee made changes -
          Assignee Yun Lee [ yunlee ]
          Knut Anders Hatlen made changes -
          Field Original Value New Value
          Link This issue is part of DERBY-310 [ DERBY-310 ]
          Knut Anders Hatlen created issue -

            People

            • Assignee:
              Yun Lee
              Reporter:
              Knut Anders Hatlen
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development