You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-user@db.apache.org by Pavel Bortnovskiy <PB...@Jefferies.com> on 2010/03/24 22:30:06 UTC

Case Sensitivity

Hello, all:

when executing a statement, such as:

                        select
                    Id as id,
                    Code as code,
                    TypeStr as typeStr
                  from MyTable

against a Derby in-memory table, the ResultSetMetaData present column 
names all in upper case and the original case is not preserved.

Is there a setting which would allow to preserve the case specified in the 
SQL statement, i.e. with the statement above, the first column would be 
"id", second - "code", third - "typeStr", etc...

Thank you,

Pavel.




Jefferies archives and monitors outgoing and incoming e-mail. The contents of this email, including any attachments, are confidential to the ordinary user of the email address to which it was addressed. If you are not the addressee of this email you may not copy, forward, disclose or otherwise use it or any part of it in any form whatsoever. This email may be produced at the request of regulators or in connection with civil litigation. Jefferies accepts no liability for any errors or omissions arising as a result of transmission. Use by other than intended recipients is prohibited.  In the United Kingdom, Jefferies operates as Jefferies International Limited; registered in England: no. 1978621; registered office: Vintners Place, 68 Upper Thames Street, London EC4V 3BJ.  Jefferies International Limited is authorised and regulated by the Financial Services Authority.

Re: Case Sensitivity

Posted by Pavel Bortnovskiy <PB...@Jefferies.com>.
Thank you, Mark and Peter, for your immediate help and explanation.






Mark Thornton <mt...@optrak.co.uk> 
03/24/2010 06:02 PM
Please respond to
"Derby Discussion" <de...@db.apache.org>


To
Derby Discussion <de...@db.apache.org>
cc

Subject
Re: Case Sensitivity






Peter Ondru?ka wrote:
> Not that I know, this is by SQL standard.
>
> On Wed, Mar 24, 2010 at 10:43 PM, Pavel Bortnovskiy 
> <PBortnovskiy@jefferies.com <ma...@jefferies.com>> wrote:
>
>
>     Thank you, Peter, for your prompt response. Is enclosing them in
>     quotes the only way to do so? Is there any setting which can be
>     applied to Derby (or a -Define), so that the quotes could be 
omitted?
>
Databases like SQLServer that do preserve the case violate the standard 
by ignoring the case of quoted identifiers. On a standard conforming 
database, converting unquoted identifiers to upper case is unavoidable.

Mark Thornton







Jefferies archives and monitors outgoing and incoming e-mail. The contents of this email, including any attachments, are confidential to the ordinary user of the email address to which it was addressed. If you are not the addressee of this email you may not copy, forward, disclose or otherwise use it or any part of it in any form whatsoever. This email may be produced at the request of regulators or in connection with civil litigation. Jefferies accepts no liability for any errors or omissions arising as a result of transmission. Use by other than intended recipients is prohibited.  In the United Kingdom, Jefferies operates as Jefferies International Limited; registered in England: no. 1978621; registered office: Vintners Place, 68 Upper Thames Street, London EC4V 3BJ.  Jefferies International Limited is authorised and regulated by the Financial Services Authority.

Re: Case Sensitivity

Posted by Mark Thornton <mt...@optrak.co.uk>.
Peter Ondruška wrote:
> Not that I know, this is by SQL standard.
>
> On Wed, Mar 24, 2010 at 10:43 PM, Pavel Bortnovskiy 
> <PBortnovskiy@jefferies.com <ma...@jefferies.com>> wrote:
>
>
>     Thank you, Peter, for your prompt response. Is enclosing them in
>     quotes the only way to do so? Is there any setting which can be
>     applied to Derby (or a -Define), so that the quotes could be omitted?
>
Databases like SQLServer that do preserve the case violate the standard 
by ignoring the case of quoted identifiers. On a standard conforming 
database, converting unquoted identifiers to upper case is unavoidable.

Mark Thornton


Re: Case Sensitivity

Posted by Peter Ondruška <pe...@gmail.com>.
Not that I know, this is by SQL standard.

On Wed, Mar 24, 2010 at 10:43 PM, Pavel Bortnovskiy <
PBortnovskiy@jefferies.com> wrote:

>
> Thank you, Peter, for your prompt response. Is enclosing them in quotes the
> only way to do so? Is there any setting which can be applied to Derby (or a
> -Define), so that the quotes could be omitted?
>
>
>
>
>
> *Peter Ondruška <pe...@gmail.com>*
>
> 03/24/2010 05:33 PM
> Please respond to
> "Derby Discussion" <de...@db.apache.org>
>
>   To
> Derby Discussion <de...@db.apache.org>
> cc
>   Subject
> Re: Case Sensitivity
>
>
>
>
> select
>                    Id as "id",
>                    Code as "code",
>                    TypeStr as "typeStr"
>                  from MyTable
>
> On Wed, Mar 24, 2010 at 10:30 PM, Pavel Bortnovskiy
> <PB...@jefferies.com> wrote:
> >
> > Hello, all:
> >
> > when executing a statement, such as:
> >
> >                         select
> >                     Id as id,
> >                     Code as code,
> >                     TypeStr as typeStr
> >                   from MyTable
> >
> > against a Derby in-memory table, the ResultSetMetaData present column
> names
> > all in upper case and the original case is not preserved.
> >
> > Is there a setting which would allow to preserve the case specified in
> the
> > SQL statement, i.e. with the statement above, the first column would be
> > "id", second - "code", third - "typeStr", etc...
> >
> > Thank you,
> >
> > Pavel.
> >
> >
> >
> > Jefferies archives and monitors outgoing and incoming e-mail. The
> contents
> > of this email, including any attachments, are confidential to the
> ordinary
> > user of the email address to which it was addressed. If you are not the
> > addressee of this email you may not copy, forward, disclose or otherwise
> use
> > it or any part of it in any form whatsoever. This email may be produced
> at
> > the request of regulators or in connection with civil litigation.
> Jefferies
> > accepts no liability for any errors or omissions arising as a result of
> > transmission. Use by other than intended recipients is prohibited.  In
> the
> > United Kingdom, Jefferies operates as Jefferies International Limited;
> > registered in England: no. 1978621; registered office: Vintners Place, 68
> > Upper Thames Street, London EC4V 3BJ.  Jefferies International Limited is
> > authorised and regulated by the Financial Services Authority.
>
>
>
>
>
> Jefferies archives and monitors outgoing and incoming e-mail. The contents
> of this email, including any attachments, are confidential to the ordinary
> user of the email address to which it was addressed. If you are not the
> addressee of this email you may not copy, forward, disclose or otherwise use
> it or any part of it in any form whatsoever. This email may be produced at
> the request of regulators or in connection with civil litigation. Jefferies
> accepts no liability for any errors or omissions arising as a result of
> transmission. Use by other than intended recipients is prohibited.  In the
> United Kingdom, Jefferies operates as Jefferies International Limited;
> registered in England: no. 1978621; registered office: Vintners Place, 68
> Upper Thames Street, London EC4V 3BJ.  Jefferies International Limited is
> authorised and regulated by the Financial Services Authority.
>

Re: Case Sensitivity

Posted by Pavel Bortnovskiy <PB...@Jefferies.com>.
Thank you, Peter, for your prompt response. Is enclosing them in quotes 
the only way to do so? Is there any setting which can be applied to Derby 
(or a -Define), so that the quotes could be omitted?






Peter Ondru?ka <pe...@gmail.com> 
03/24/2010 05:33 PM
Please respond to
"Derby Discussion" <de...@db.apache.org>


To
Derby Discussion <de...@db.apache.org>
cc

Subject
Re: Case Sensitivity






select
                    Id as "id",
                    Code as "code",
                    TypeStr as "typeStr"
                  from MyTable

On Wed, Mar 24, 2010 at 10:30 PM, Pavel Bortnovskiy
<PB...@jefferies.com> wrote:
>
> Hello, all:
>
> when executing a statement, such as:
>
>                         select
>                     Id as id,
>                     Code as code,
>                     TypeStr as typeStr
>                   from MyTable
>
> against a Derby in-memory table, the ResultSetMetaData present column 
names
> all in upper case and the original case is not preserved.
>
> Is there a setting which would allow to preserve the case specified in 
the
> SQL statement, i.e. with the statement above, the first column would be
> "id", second - "code", third - "typeStr", etc...
>
> Thank you,
>
> Pavel.
>
>
>
> Jefferies archives and monitors outgoing and incoming e-mail. The 
contents
> of this email, including any attachments, are confidential to the 
ordinary
> user of the email address to which it was addressed. If you are not the
> addressee of this email you may not copy, forward, disclose or otherwise 
use
> it or any part of it in any form whatsoever. This email may be produced 
at
> the request of regulators or in connection with civil litigation. 
Jefferies
> accepts no liability for any errors or omissions arising as a result of
> transmission. Use by other than intended recipients is prohibited.  In 
the
> United Kingdom, Jefferies operates as Jefferies International Limited;
> registered in England: no. 1978621; registered office: Vintners Place, 
68
> Upper Thames Street, London EC4V 3BJ.  Jefferies International Limited 
is
> authorised and regulated by the Financial Services Authority.






Jefferies archives and monitors outgoing and incoming e-mail. The contents of this email, including any attachments, are confidential to the ordinary user of the email address to which it was addressed. If you are not the addressee of this email you may not copy, forward, disclose or otherwise use it or any part of it in any form whatsoever. This email may be produced at the request of regulators or in connection with civil litigation. Jefferies accepts no liability for any errors or omissions arising as a result of transmission. Use by other than intended recipients is prohibited.  In the United Kingdom, Jefferies operates as Jefferies International Limited; registered in England: no. 1978621; registered office: Vintners Place, 68 Upper Thames Street, London EC4V 3BJ.  Jefferies International Limited is authorised and regulated by the Financial Services Authority.

Re: Case Sensitivity

Posted by Peter Ondruška <pe...@gmail.com>.
select
                    Id as "id",
                    Code as "code",
                    TypeStr as "typeStr"
                  from MyTable

On Wed, Mar 24, 2010 at 10:30 PM, Pavel Bortnovskiy
<PB...@jefferies.com> wrote:
>
> Hello, all:
>
> when executing a statement, such as:
>
>                         select
>                     Id as id,
>                     Code as code,
>                     TypeStr as typeStr
>                   from MyTable
>
> against a Derby in-memory table, the ResultSetMetaData present column names
> all in upper case and the original case is not preserved.
>
> Is there a setting which would allow to preserve the case specified in the
> SQL statement, i.e. with the statement above, the first column would be
> "id", second - "code", third - "typeStr", etc...
>
> Thank you,
>
> Pavel.
>
>
>
> Jefferies archives and monitors outgoing and incoming e-mail. The contents
> of this email, including any attachments, are confidential to the ordinary
> user of the email address to which it was addressed. If you are not the
> addressee of this email you may not copy, forward, disclose or otherwise use
> it or any part of it in any form whatsoever. This email may be produced at
> the request of regulators or in connection with civil litigation. Jefferies
> accepts no liability for any errors or omissions arising as a result of
> transmission. Use by other than intended recipients is prohibited.  In the
> United Kingdom, Jefferies operates as Jefferies International Limited;
> registered in England: no. 1978621; registered office: Vintners Place, 68
> Upper Thames Street, London EC4V 3BJ.  Jefferies International Limited is
> authorised and regulated by the Financial Services Authority.