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

Client can send incorrect database name to server after having made multiple connections to different databases.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 10.1.3.1, 10.2.1.6
    • 10.3.1.4
    • Network Client
    • None
    • Normal

    Description

      I have a simple program that connects to a database using the Derby Client, executes a simple query, then connects to a different database using a different Connection object and executes another simple query on that second connection. The queries both execute without error, so it appears that the connections are correct--i.e. each query will only work on one of the databases, and both queries work, therefore each must be getting executed against the correct database.

      But in looking at the client and server traces, I noticed that for the query on the second database, the client is actually sending the name of the first database as RDBNAM, which (I think?) is wrong--it should be sending the name of the second database, since the query is being executed on the second Connection object.

      This behavior does not appear to occur for JCC.

      Attachments

        1. Server2.trace
          17 kB
          A B
        2. _driver_1
          60 kB
          A B
        3. d1434.java
          2 kB
          A B
        4. d1434_v2.java
          3 kB
          Julius Stroffek
        5. derby-1434-trunk-diff.txt
          0.7 kB
          Julius Stroffek
        6. derby1434-try2.diff
          35 kB
          Julius Stroffek
        7. derby1434-try2.diff
          35 kB
          Julius Stroffek
        8. derby1434-try2.stat
          0.9 kB
          Julius Stroffek
        9. derby1434-try3.diff
          35 kB
          Julius Stroffek

        Activity

          People

            julo Julius Stroffek
            army A B
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: