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

client and embedded differ for return value for PreparedStatement.getMetaData if there is no ResultSet returned

    XMLWordPrintableJSON

    Details

    • Type: Task
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 10.3.1.4
    • Fix Version/s: None
    • Component/s: JDBC
    • Urgency:
      Low
    • Issue & fix info:
      Newcomer
    • Bug behavior facts:
      Embedded/Client difference

      Description

      Embedded will return a null value for PreparedStatement.getMetaData() if no ResultSet is returned. Client will return a ResultSetMetaData object with 0 columnCount. Looking at the javadoc for getMetaData() it says it returns
      "the description of a ResultSet object's columns or null if the driver cannot return a ResultSetMetaData object"

      So I am not sure which is the preferable behavior, but it should be the same.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                kmarsden Katherine Marsden
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: