db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Van Couvering (JIRA)" <derby-...@db.apache.org>
Subject [jira] Commented: (DERBY-159) When Derby runs in Network Server mode, client does not receive warnings generated by Derby
Date Sat, 20 Aug 2005 00:04:54 GMT
    [ http://issues.apache.org/jira/browse/DERBY-159?page=comments#action_12319442 ] 

David Van Couvering commented on DERBY-159:
-------------------------------------------

Hm, it bothers me that we need to document that you don't get warnings in the network client
because of a limitation in the DRDA protocol.  What is the right thing to do for the Derby
community here? If the DRDA standard is constraining what we can do with the network client
(for example, sending warnings over the wire, supporting larger encryption keys, etc.), then
what is our policy?  One could argue that we should be able to extend our protocol to be a
superset of DRDA, or maybe add support for an alternate protocol using some kind of plugin
scheme.  I am uncomfortable with the feeling that our hands are being tied by the DRDA spec.

Are there motivations within the community to be compliant with DRDA?  I recognize this has
value for the IBM universal driver, but is compatibility with this driver a clear requirement
for the Derby community?

Thanks,

David


> When Derby runs in Network Server mode, client does not receive warnings generated by
Derby
> -------------------------------------------------------------------------------------------
>
>          Key: DERBY-159
>          URL: http://issues.apache.org/jira/browse/DERBY-159
>      Project: Derby
>         Type: Bug
>   Components: Network Server
>     Reporter: Mamta A. Satoor

>
> A simple code below will demonstrate that warnings generated by Derby running in Server
mode do not make their way to client. The client code below is trying to create the database
db1drda which already exsits. Server generates a warning for that but the client cde below
does not print it.
> con = DriverManager.getConnection("jdbc:derby:net://localhost:1527/db1drda;create=true:retrieveMessagesFromServerOnGetMessage=true;",
"app", "app");
> SQLWarning warnings1 = con.getWarnings();
> System.out.println("database exists, should get warning");
> while (warnings1 != null)
> {
> 	System.out.println("warnings on connection = " + warnings1);
> 	warnings1 = warnings1.getNextWarning();
> }

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message