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 Andrew McIntyre <mc...@gmail.com> on 2007/02/21 05:15:45 UTC

improving documentation of connection attributes (was Re: Security in Derby)

On 2/20/07, Francois Orsini <fr...@gmail.com> wrote:
> Hi Laura,
>
> Actually, it is pretty good as a start but I think we need to document more
> connection URL attributes - At least for the ones we have not provided any
> examples yet.

Taking this back over to derby-dev. Comparing what we have in the
reference manual [1] with iapi.reference.Attribute, the following are
missing:

'collate=?': just added. See DERBY-1478 / DERBY-2334.

'encryptionKeyLength=<length>': Specifies the key length in bytes for
the specified cryptographic algorithm.

'upgrade=true': The connection attribute for indicating that the
engine should perform a non-revertable, hard upgrade of the on-disk
database format.

'securityMechanism=<number>': securityMechanism sets the DRDA
mechanism in-use for the client. See DRDA spec and DERBY-528 and
related issues.

There's also drdaId, drdaSecTokenIn, and drdaSecTokenOut, but I
believe these are meant to be used internally only and should not be
set by users.

andrew

[1] http://db.apache.org/derby/docs/10.2/ref/rrefattrib24612.html

Re: improving documentation of connection attributes (was Re: Security in Derby)

Posted by Mamta Satoor <ms...@gmail.com>.
Andrew, I looked through the code and Derby documentation and don't see
Derby using the attribute collate anywhere.

I checked the SQL specification and the purpose of collate clause in SQL is
to customize  the collation used for a character data type or group by
clause etc.

So, for now, this attribute can be removed so it doesn't cause confusion. I
can remove this attribute during my work on DERBY-1478.

Mamta


On 2/21/07, Andrew McIntyre <mc...@gmail.com> wrote:
>
> On 2/21/07, Mamta Satoor <ms...@gmail.com> wrote:
> > Actually, as part of DERBY-1478/DERBY-2334, I am adding the attribute
> > "collation" and not "collate".
>
> My mistake. There's currently a 'collate' attribute in Attribute.java,
> though. Do you know what that attribute is used for?
>
> andrew
>

Re: improving documentation of connection attributes (was Re: Security in Derby)

Posted by Andrew McIntyre <mc...@gmail.com>.
On 2/21/07, Mamta Satoor <ms...@gmail.com> wrote:
> Actually, as part of DERBY-1478/DERBY-2334, I am adding the attribute
> "collation" and not "collate".

My mistake. There's currently a 'collate' attribute in Attribute.java,
though. Do you know what that attribute is used for?

andrew

Re: improving documentation of connection attributes (was Re: Security in Derby)

Posted by Mamta Satoor <ms...@gmail.com>.
Actually, as part of DERBY-1478/DERBY-2334, I am adding the attribute
"collation" and not "collate".

Mamta


On 2/20/07, Andrew McIntyre <mc...@gmail.com> wrote:
>
> On 2/20/07, Francois Orsini <fr...@gmail.com> wrote:
> > Hi Laura,
> >
> > Actually, it is pretty good as a start but I think we need to document
> more
> > connection URL attributes - At least for the ones we have not provided
> any
> > examples yet.
>
> Taking this back over to derby-dev. Comparing what we have in the
> reference manual [1] with iapi.reference.Attribute, the following are
> missing:
>
> 'collate=?': just added. See DERBY-1478 / DERBY-2334.
>
> 'encryptionKeyLength=<length>': Specifies the key length in bytes for
> the specified cryptographic algorithm.
>
> 'upgrade=true': The connection attribute for indicating that the
> engine should perform a non-revertable, hard upgrade of the on-disk
> database format.
>
> 'securityMechanism=<number>': securityMechanism sets the DRDA
> mechanism in-use for the client. See DRDA spec and DERBY-528 and
> related issues.
>
> There's also drdaId, drdaSecTokenIn, and drdaSecTokenOut, but I
> believe these are meant to be used internally only and should not be
> set by users.
>
> andrew
>
> [1] http://db.apache.org/derby/docs/10.2/ref/rrefattrib24612.html
>