Board index » delphi » SQL case sensitive

SQL case sensitive

I'm having a problem with case-sensitity in a TQuery  under Delphi 2.
The SQL:

        select  * from "mytable.db" MT
        where MT."Trend" like "%sometext%"

        (Trend is a memo field)

will find examples of 'sometext', but not 'someText', 'SOMEText', etc.
The same SQL is not case-sensitive under Paradox 5 or Delphi 1. Is
this apparent case-sensitivity a feature of 32 BDE/Delphi,  or do I
have some obscure config setting wrong? Any help appreciated.

Tim Ward
Health and Safety Laboratory, UK

 

Re:SQL case sensitive


On Fri, 08 May 1998 08:49:10 GMT, timothy.ward@[removethis]hsl.gov.uk

Quote
(Tim Ward) wrote:
> I'm having a problem with case-sensitity in a TQuery  under Delphi 2.
> The SQL:

>    select  * from "mytable.db" MT
>    where MT."Trend" like "%sometext%"

>    (Trend is a memo field)

> will find examples of 'sometext', but not 'someText', 'SOMEText', etc.
> The same SQL is not case-sensitive under Paradox 5 or Delphi 1. Is
> this apparent case-sensitivity a feature of 32 BDE/Delphi,  or do I
> have some obscure config setting wrong? Any help appreciated.

> Tim Ward
> Health and Safety Laboratory, UK

USe where UPPER(...) like UPPER(...). This should do the trick.

HTH,
        Mark

Other Threads