Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Order of where clause matters!

Re: Order of where clause matters!

From: Steve Haynes <steve_at_rwx777.demon.co.uk>
Date: 2000/06/30
Message-ID: <T2VELUAw6RX5Ew1A@rwx777.demon.co.uk>#1/1

In article <8jgki7$3ep$1_at_nnrp1.deja.com>, dave_wotton_at_my-deja.com writes <snipped>

Agreed.

We were clobbered by another variation on this today with "invalid number" being returned - this happened joining to a config table with a variable lookup something like this:
where config_variable='A NUMBER' and config value > 100. Of course some of our config variables are not numbers but since the > test was done before the = 'A NUMBER' test, it caused an error.
This is becoming a pain!
The only safe way appears to be a set of select from selects... Steve
P.S
Don't even mention the CBO in 8.0.5...
8.1.6 makes some painful decisions too.
Wishlist: rather than hint, how about "don't ignore me, do it this way" The CBO may assume that the hint is wrong and ignore it, but that doesn't help if the CBO is wrong in making the decision about whether the hint is wrong. Ho hum. Received on Fri Jun 30 2000 - 00:00:00 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US