RE: Wrong results using decode when db upgraded to 9205

  • From: "Jamadagni, Rajendra" <Rajendra.Jamadagni@xxxxxxxx>
  • To: <oracle-l@xxxxxxxxxxxxx>
  • Date: Wed, 5 May 2004 12:59:18 -0400

Wolfgang ...

It looks like this ...=20

decode(:"SYS_B_08", :"SYS_B_09", :"SYS_B_10", :"SYS_B_11") =3D =
:"SYS_B_12"

And in the trace file I also see ...=20

 bind 13: dty=3D1 mxl=3D32(02) mal=3D00 scl=3D00 pre=3D00 oacflg=3D10 =
oacfl2=3D100
size=3D32 offset=3D0
   bfp=3D1104c0a28 bln=3D32 avl=3D02 flg=3D09
   value=3D"C8"
 bind 14: dty=3D1 mxl=3D32(02) mal=3D00 scl=3D00 pre=3D00 oacflg=3D10 =
oacfl2=3D100
size=3D32 offset=3D0
   bfp=3D1104c09e0 bln=3D32 avl=3D02 flg=3D09
   value=3D"C8"
 bind 15: dty=3D1 mxl=3D32(03) mal=3D00 scl=3D00 pre=3D00 oacflg=3D10 =
oacfl2=3D100
size=3D32 offset=3D0
   bfp=3D110420ae8 bln=3D32 avl=3D03 flg=3D09
   value=3D"237"
 bind 16: dty=3D1 mxl=3D32(01) mal=3D00 scl=3D00 pre=3D00 oacflg=3D10 =
oacfl2=3D100
size=3D32 offset=3D0
   bfp=3D110420aa0 bln=3D32 avl=3D01 flg=3D09
   value=3D"0"
 bind 17: dty=3D1 mxl=3D32(03) mal=3D00 scl=3D00 pre=3D00 oacflg=3D10 =
oacfl2=3D100
size=3D32 offset=3D0
   bfp=3D110420a58 bln=3D32 avl=3D03 flg=3D09
   value=3D"237"

There are defined bind variables in the SQL as well, so numbers won't
match, but I carefully calculated and am showing the right bind values.

Original SQL is "and decode('C8','C8','237','0') =3D3D '237'"
Raj
------------------------------------------------------------------------
--------=20
Rajendra dot Jamadagni at nospamespn dot com=20
All Views expressed in this email are strictly personal.=20
select standard_disclaimer from company_requirements;=20
QOTD: Any clod can have facts, having an opinion is an art !

-----Original Message-----
From: oracle-l-bounce@xxxxxxxxxxxxx
[mailto:oracle-l-bounce@xxxxxxxxxxxxx] On Behalf Of Wolfgang Breitling
Sent: Wednesday, May 05, 2004 12:47 PM
To: oracle-l@xxxxxxxxxxxxx
Subject: RE: Wrong results using decode when db upgraded to 9205

Aah, so it is not a decode issue/bug but a cursor_sharing=3Dforce (or is
it
similar?) issue/bug.

I'd be curious what the converted sql with system forced bind variables
looks like.

----------------------------------------------------------------
Please see the official ORACLE-L FAQ: http://www.orafaq.com
----------------------------------------------------------------
To unsubscribe send email to:  oracle-l-request@xxxxxxxxxxxxx
put 'unsubscribe' in the subject line.
--
Archives are at //www.freelists.org/archives/oracle-l/
FAQ is at //www.freelists.org/help/fom-serve/cache/1.html
-----------------------------------------------------------------

Other related posts: