Author Topic: Search case sensitivity  (Read 1803 times)

Iker

  • Jr. Member
  • **
  • Posts: 17
    • View Profile
Search case sensitivity
« on: June 12, 2008, 08:56:46 AM »
Hi,

I have noticed that search is case sensitive. I haven't investigated deeply but I guess it could be customized, but are there plans to make search not case sensitive or add an option for the Admin UI to let the admins decide whether they want case sensitive search?

Thank you

heidi

  • Administrator
  • Sr. Member
  • *****
  • Posts: 202
    • View Profile
    • KonaKart Website
Re: Search case sensitivity
« Reply #1 on: June 12, 2008, 09:15:10 AM »
Hi,

Case insensitivity is dependent on the database set up - independent of KonaKart.   You can set up your database to act the way you want in this regard.

Hence, there are no plans to add anything to KonaKart for this.

Regards,
Heidi

Iker

  • Jr. Member
  • **
  • Posts: 17
    • View Profile
Re: Search case sensitivity
« Reply #2 on: June 12, 2008, 10:39:53 AM »
Hi,

Thanks for the quick reply. Unfortunately not all versions of the DBs support this type of setup (for example Oracle 9i doesn't, only from 10g and up) and not in all cases we can influence DB setup, as it is planned to work on an already existing DB instance. But I think I can live with it...

Thank you

ming

  • Administrator
  • Sr. Member
  • *****
  • Posts: 158
    • View Profile
    • KonaKart Website
Re: Search case sensitivity
« Reply #3 on: June 12, 2008, 11:23:25 AM »
For Oracle, I saw this on an Oracle Forum about Oracle 9i: (I haven't tested this)

Code: [Select]
Connected to:
Oracle9i Release 9.2.0.1.0 - Production
JServer Release 9.2.0.1.0 - Production

SQL> create table brisime (col varchar2(20));
Table created.

SQL> insert into brisime values ('Little Foot');
1 row created.

SQL> insert into brisime values ('LITTLE foot');
1 row created.

SQL> insert into brisime values ('little FOOT');
1 row created.

SQL> select * from brisime;
COL
--------------------
Little Foot
LITTLE foot
little FOOT

SQL> alter session set nls_comp = ANSI;
Session altered.

SQL> alter session set nls_sort = GENERIC_BASELETTER;

Session altered.

SQL> select * from brisime where col = 'little foot';

COL
--------------------
Little Foot
LITTLE foot
little FOOT

SQL>


I know some users on Oracle (10g +) have set code like this in login.sql scripts to set case-insensitve searching for the user:

Code: [Select]
begin
 if user = 'KKUser' then
  execute immediate ‘alter session set NLS_COMP=LINGUISTIC’;
  execute immediate ‘alter session set NLS_SORT=BINARY_CI’;
 end if;
end;


Which database are you unable to set case insensitive searching on ?
Regards,
Ming

wafeneto

  • Jr. Member
  • **
  • Posts: 17
    • View Profile
Re: Search case sensitivity
« Reply #4 on: September 02, 2008, 03:13:24 PM »
you have any idea of how can i perform a search "case insensitive" using postgres sql? (looking in pg manual they told to use ilike command instead like, but how can i do this using konakart?)