Joinutility seperatorLogin utility separator Infobright.com
   
 
LIKE and UPPER
Posted: 06 October 2009 03:52 AM   Ignore ]  
Newbie
Rank
Total Posts:  17
Joined  2009-07-23

Hello

I have “problem” with LIKE operator.
I have two database systems - normal MySQL (MyISAM) and Infobright (Infobright). These systems are the same encoding: latin2_general_ci.
On MySQL I can use LIKE with small letter, but on Infobright I will have to use UPPER, because I don’t know how letters is in table.

Example:

Simple query on MySQL and Infobright get the same data:

select idname
from table
where id 

MyISAM-> 1, Slawek
Infobright-> 1, Slawek

If I want to use LIKE operator

select idname
from table
where name like 
'%slawek%' 

MyISAM-> 1, Slawek
Infobright-> NULL

On Infobright I will have to use

UPPER(namelike UPPER('%slawek%'

.

Why Infobright cannot interpret this query? Maybe I need configure it?
This is a problem, because we have problems with integration software. Older code and scripts do not work well.

Thanks!

Cheers,
Slawek

Profile
 
Posted: 06 October 2009 05:06 AM   Ignore ]   [ # 1 ]  
Member
Avatar
RankRankRank
Total Posts:  181
Joined  2008-08-18

Hi Slawek,

Infobright does not support yet different than default character sets and collations (latin1+ascii_bin). It is planned for our next releases. You have specified latin2_general_ci which is ‘c’ase ‘i’nsensitive collation,  and that is why MyISAM returns non empty result. At the moment I don’t see any other workaround than using UPPER.

Thanks,
Piotr

Profile
 
Posted: 06 October 2009 05:19 AM   Ignore ]   [ # 2 ]  
Newbie
Rank
Total Posts:  17
Joined  2009-07-23

Hi Piotr.

Thank you very much. Now we know what we can do.

Cheers
Slawek

Profile
 
Posted: 28 January 2010 05:56 AM   Ignore ]   [ # 3 ]  
Newbie
Rank
Total Posts:  1
Joined  2010-01-28

Thanks for the guidance.
Quite a useful piece of information.

Profile