Board index » delphi » Case insensitive queries in D3

Case insensitive queries in D3

After moving a D1 application to D3, I discovered that my paramaterised SQL
queries are now CASE SENSITIVE, meaning that unless users exactly match the
case of the underlying database fields, no match occurs.

Can anyone recommend a solution to this problem?

Thanks

Shane M
Mu...@dpi.qld.gov.au

 

Re:Case insensitive queries in D3


Quote
"Shane Mulo" <Mu...@dpi.qld.gov.au> wrote:
>After moving a D1 application to D3, I discovered that my paramaterised SQL
>queries are now CASE SENSITIVE, meaning that unless users exactly match the
>case of the underlying database fields, no match occurs.

>Can anyone recommend a solution to this problem?

Select * from MyTable where :MyParam = UPPER(DataField)

Make the value for MyParam uppercase before storing it.

Quote
>Thanks

>Shane M
>Mu...@dpi.qld.gov.au

--

Peter S Ingham               p...@actrix.gen.nz
Lower Hutt, New Zealand

Other Threads