You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-dev@db.apache.org by "V.Narayanan (JIRA)" <ji...@apache.org> on 2007/04/03 17:37:32 UTC

[jira] Updated: (DERBY-2506) Adding the locator information to FD:OCA descriptor (FDODSC) andFD:OCA data (FDODTA) of the SQLDTA objects

     [ https://issues.apache.org/jira/browse/DERBY-2506?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

V.Narayanan updated DERBY-2506:
-------------------------------

    Attachment: PreparedCallable_DRDA_v2.stat
                PreparedCallable_DRDA_v2.diff

I have fixed the errors I encountered in the previous patch.

Failures due to
---------------------

* When a column was being initialized to null the check in 
   computeProtocolTypesAndLengths (i.e.)
   if(inputRow[i] instanceof java.sql.Blob) returns false and
   the FDODSC field in the SQLDTA was being initialized to
   contain a valid locator type causing the failures of the tests.

In the current patch I have made the following changes
---------------------------------------------------------------------------
   
   1) I have added a isLocator method to am/Lob class that 
        return a boolean to inicate of locator support is available
        or not. As of now the method always returns false.
         Added a getLocator method to the Lob class that returns
         the locator value associated with this LOB. As of now
         it returns -1 always.
   2) In the computProtocolsAndLengths method I use the isLocator
        check to determine if the LOB supports locator and set the 
         LID (local identifier)
   3)  In the buildFDODTA I use the LID to determine that the inputs array
         is supposed to contain a locator value and use the getLocator
         method to set the locator value in the FDODTA field of the SQLDTA.

I ran the junit and non-junit tests of the jdbcapi suite and they ran fine. I have run derbyall on this patch and shall report the results tomorrow.

Subsequent attachment contains the code that represents the changes I had to make to check the working of this patch.

Pls consider this patch for reviews and comments.    

> Adding the locator information to FD:OCA descriptor (FDODSC) andFD:OCA data (FDODTA)  of the SQLDTA objects
> -----------------------------------------------------------------------------------------------------------
>
>                 Key: DERBY-2506
>                 URL: https://issues.apache.org/jira/browse/DERBY-2506
>             Project: Derby
>          Issue Type: Sub-task
>            Reporter: V.Narayanan
>         Assigned To: V.Narayanan
>         Attachments: PreparedCallable_DRDA_v1.diff, PreparedCallable_DRDA_v1.stat, PreparedCallable_DRDA_v2.diff, PreparedCallable_DRDA_v2.stat
>
>


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.