[
https://issues.apache.org/jira/browse/DERBY-5203?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13026892#comment-13026892
]
Knut Anders Hatlen commented on DERBY-5203:
-------------------------------------------
I think you're right that the deregister attribute isn't meaningful when an
in-memory database (or any database for that matter) is specified in the URL,
since deregistering of the driver only happens when you shut down the engine.
I'm not sure how accurate the sentence "This attribute cannot be combined with
other attributes." is, though. The drop attribute certainly *can* be combined
with other attributes (although it doesn't necessarily make sense). For example
the following works:
ij> connect
'jdbc:derby:memory:db;drop=true;deregister=true;user=test;password=xyz';
ERROR 08006: Database 'memory:db' dropped.
And if authentication is enabled, combining it with other attributes is
actually required:
ij> connect 'jdbc:derby:memory:db;drop=true';
ERROR 08004: Connection authentication failure occurred. Reason: Invalid
authentication..
ij> connect 'jdbc:derby:memory:db;drop=true;user=abc;password=def';
ERROR 08006: Database 'memory:db' dropped.
> Documentation of drop=true attribute contains error
> ---------------------------------------------------
>
> Key: DERBY-5203
> URL: https://issues.apache.org/jira/browse/DERBY-5203
> Project: Derby
> Issue Type: Bug
> Components: Documentation
> Affects Versions: 10.8.1.2
> Reporter: Kim Haase
> Assignee: Kim Haase
> Priority: Minor
> Attachments: DERBY-5203.diff, DERBY-5203.stat, rrefattribdrop.html
>
>
> The Reference Manual topic on the drop=true attribute, rrefattribdrop.dita,
> contains the statement,
> "This attribute, like shutdown=true, cannot be combined with other
> attributes."
> This used to be true, but with the addition of the deregister attribute,
> which must be combined with shutdown=true, it is now incorrect.
> The sentence should be changed to say only,
> "This attribute cannot be combined with other attributes."
> (I'm assuming that the deregister attribute doesn't apply to dropping an
> in-memory database, since it's specific to the embedded driver. Please let me
> know if this isn't the case.)
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira