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

Home -> Community -> Mailing Lists -> Oracle-L -> RE: Wrong results using decode when db upgraded to 9205

RE: Wrong results using decode when db upgraded to 9205

From: Jamadagni, Rajendra <Rajendra.Jamadagni_at_espn.com>
Date: Wed, 5 May 2004 12:59:18 -0400
Message-ID: <A186CBDC8B1D61438BC50F1A77E91F73075BD65C@xchgbrsm1.corp.espn.pvt>


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_at_freelists.org
[mailto:oracle-l-bounce_at_freelists.org] On Behalf Of Wolfgang Breitling Sent: Wednesday, May 05, 2004 12:47 PM
To: oracle-l_at_freelists.org
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_at_freelists.org put 'unsubscribe' in the subject line.
--
Archives are at http://www.freelists.org/archives/oracle-l/
FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html

-----------------------------------------------------------------
Received on Wed May 05 2004 - 11:56:44 CDT

Original text of this message

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