Uploaded image for project: 'Derby'
  1. Derby
  2. DERBY-955 Get derbyall on jdk1.6
  3. DERBY-1059

call to stored procedure with out params fails in embedded driver

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 10.2.1.6
    • 10.2.1.6
    • JDBC
    • None

    Description

      org.apache.derby.impl.jdbc.EmbeddedCallableStatement40 and org.apache.derby.client.am.CallableStatement40 are instantiating Preparewdstament in
      constructor. Becasue of this call to stored procedure with out param fails.

      Instantiatiation of prepared was done to share the common method in prepared statement and callbale statement. But this aporach causes another issue of creating two instance of statement (one by calling super () and another by instantiating prepared statement).

      I can think of two solution of this problem
      1. Create another class which handles the common methods in PrepardStatement40 and CallableStatement40 classes.
      2. Duplicate the common method in both classes.

      I feel 1st one is better. It will will be easier to fix any issue in the common methods and chance to miss to fix in one of the classes will be eliminated.

      Attachments

        1. derby-1059_2.diff
          38 kB
          Anurag Aggarwal
        2. derby-1059_2.diff
          38 kB
          Anurag Aggarwal
        3. derby-1059_3.diff
          24 kB
          Anurag Aggarwal
        4. derby-1059.diff
          27 kB
          Anurag Aggarwal

        Activity

          People

            anurag Anurag Aggarwal
            anurag Anurag Aggarwal
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: