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 "Abhinav Gupta (JIRA)" <ji...@apache.org> on 2015/07/29 22:41:04 UTC

[jira] [Commented] (DERBY-6803) Change Sqlca and SqlException in NetworkClient to call MessageUtils

    [ https://issues.apache.org/jira/browse/DERBY-6803?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14646729#comment-14646729 ] 

Abhinav Gupta commented on DERBY-6803:
--------------------------------------

Hi Bryan,

I've changed the MessageUtils.getArgs() call in the sqlca.java, since it requires sqlState too as a parameter. Now the function call is 

MessageUtils.getArgs(sqlErrmcMessages_[messageNumber], getSqlState(messageNumber));





> Change Sqlca and SqlException in NetworkClient to call MessageUtils
> -------------------------------------------------------------------
>
>                 Key: DERBY-6803
>                 URL: https://issues.apache.org/jira/browse/DERBY-6803
>             Project: Derby
>          Issue Type: Sub-task
>          Components: JDBC, Network Client, Network Server
>            Reporter: Bryan Pendleton
>            Assignee: Abhinav Gupta
>            Priority: Minor
>         Attachments: MessageUtils_1.diff, clientOutline.diff
>
>
> Currently, the network client code is not able to access the arguments
> that are associated with a Derby exception that is returned by the engine.
> We would like to change the network client code, specifically the code
> in the Sqlca and SqlException classes, so that it uses the new MessageUtils
> class to access the exception arguments.
> We wish to take the exception arguments and associate them with the
> SqlException object, so that when the client calls the SQLExceptionFactory
> to create a SQLException to throw to the user application, it can create
> a Derby-specific subclass of that exception, when appropriate, which
> contains the arguments that the server sent to the client.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Re: [jira] [Commented] (DERBY-6803) Change Sqlca and SqlException in NetworkClient to call MessageUtils

Posted by Bryan Pendleton <bp...@gmail.com>.
Hi Abhinav,

Have you tried putting all the pieces together, and running the
original DERBY-6773 test case with all of your patches applied?

Or do you think we still have more pieces to put together first?

thanks,

bryan