Unix Technical Forum

Re: Whatcha' wanta have?????

This is a discussion on Re: Whatcha' wanta have????? within the Informix forums, part of the Database Server Software category; --> Andrew Hamm wrote: > How could i forget this one? > > case insensitive comparisons and collating order! > ...


Go Back   Unix Technical Forum > Database Server Software > Informix

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-19-2008, 08:20 PM
Mark D. Stock
 
Posts: n/a
Default Re: Whatcha' wanta have?????


Andrew Hamm wrote:

> How could i forget this one?
>
> case insensitive comparisons and collating order!
>
> I don't want that applied to CHAR and VARCHAR types, since they are
> fast'n'mean byte-wise datatypes. However, since NCHAR and NVARCHAR fields
> can have a GLS locales applied, they are ideal for this little extension.
>
> I cannot find an English Locale that has case-insensitive collation. I don't
> know about other european GLS locales, but I'd wager they are case sensitive
> too, but could profit from caseless.


Can't this be achieved using functional indexes?

Cheers,
--
Mark.

+----------------------------------------------------------+-----------+
| Mark D. Stock mailto:mdstock@MydasSolutions.com |//////// /|
| Mydas Solutions Ltd http://MydasSolutions.com |///// / //|
| +-----------------------------------+//// / ///|
| |We value your comments, which have |/// / ////|
| |been recorded and automatically |// / /////|
| |emailed back to us for our records.|/ ////////|
+----------------------+-----------------------------------+-----------+


sending to informix-list
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-19-2008, 08:20 PM
Andrew Hamm
 
Posts: n/a
Default Re: Whatcha' wanta have?????

Mark D. Stock wrote:
>
> Can't this be achieved using functional indexes?


ummmmm, we'd have to deliver 9.X to all customers....


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-19-2008, 08:20 PM
Andrew Hamm
 
Posts: n/a
Default Re: Whatcha' wanta have?????

"Andrew Hamm" <ahamm@mail.com> wrote ...
> Mark D. Stock wrote:
> >
> > Can't this be achieved using functional indexes?

>
> ummmmm, we'd have to deliver 9.X to all customers....


and we'd have to change ALLLLLLLL the code to have something like

and upshift(cats_name) = upshift(?)

instead of

and cats_name = ?

wouldn't we? I've not used functional indexes before (note to self...) but
my understanding is that the engine needs to recognise an expression that is
solvable with the index as it was defined.

Also, can a functional index solve this?

and cats_name matches "tidd*l*s"

See, we want case to be ignored. SOMETIMES. When we ask for it ONLY. Without
having to rewrite lots of code.


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 04-19-2008, 08:20 PM
Andrew Hamm
 
Posts: n/a
Default Re: Whatcha' wanta have?????

Andrew Hamm wrote:
>
> Also, can a functional index solve this?
>
> and cats_name matches "tidd*l*s"
>


That example would be better with

and cats_name matches "*tidd*l*s"

so that it finds these records:

Tiddles
TIddles
tiddles
TIDDLES
Mr Tiddles
Sir Tiddles
Tiddlz


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 01:50 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com