Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: Wrong results using decode when db upgraded to 9205
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
-----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.
-- Archives are at http://www.freelists.org/archives/oracle-l/ FAQ is at http://www.freelists.org/help/fom-serve/cache/1.htmlReceived on Wed May 05 2004 - 11:56:44 CDT
-----------------------------------------------------------------