db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Knut Anders Hatlen (JIRA)" <j...@apache.org>
Subject [jira] Commented: (DERBY-2065) Network and embedded difference in SQLSTATE and message when Connection.close() with open transaction.
Date Mon, 22 Oct 2007 09:22:51 GMT

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

Knut Anders Hatlen commented on DERBY-2065:
-------------------------------------------

> SQLStateConstants.INVALID_TRANSACTION_STATE_NO_SUBCLASS are now
> unused, but I leave them declared since the constant 25000 is defined
> in the standard and may find some future use. 

Wouldn't it be better to remove the unused constants and their
messages? Keeping them in case one may find future use for them might
make sense when you look at a single case in isolation, but I think
keeping unused code in general makes the code harder to maintain. For
instance, it gets harder to translate Derby's messages to a new locale
since the translators waste time translating unused messages.

> Network and embedded difference in SQLSTATE and message when Connection.close() with
open transaction.
> ------------------------------------------------------------------------------------------------------
>
>                 Key: DERBY-2065
>                 URL: https://issues.apache.org/jira/browse/DERBY-2065
>             Project: Derby
>          Issue Type: Bug
>          Components: Network Client, Network Server
>            Reporter: Bernt M. Johnsen
>            Assignee: Jørgen Løland
>            Priority: Minor
>         Attachments: derby-2065_1.diff, derby-2065_1.stat, releaseNote.html
>
>
> Network and embedded difference in SQLSTATE and message when Connection.close() with
open transaction.
> ----------- NetworkClient --------------
> Message: Cannot close a connection while a transaction is still active.
> SQLState: 25001
> ----------- Embedded --------------
> Message: Invalid transaction state.
> SQLState: 25000

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


Mime
View raw message