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: bitand() no longer seems to work in Oracle8

Re: bitand() no longer seems to work in Oracle8

From: Thomas Kyte <tkyte_at_us.oracle.com>
Date: Fri, 12 Mar 1999 01:37:26 GMT
Message-ID: <36e86f9b.1318676@192.86.155.100>


A copy of this was sent to bweinra_at_uswest.com (if that email address didn't require changing) On Fri, 12 Mar 1999 01:23:29 GMT, you wrote:

>In oracle 7 you could fun things like
>

yes, it is sqlplus being pickier, not a change in bitand(). workaround is:

  1* select bitand(12,9)+0 from dual
SQL> / BITAND(12,9)+0


             8

or:

SQL> select to_number(bitand(12,9)) from dual;

TO_NUMBER(BITAND(12,9))


                      8

plus is seeing 'binary_integer' and thinking 'raw'.

>select bitand(12,9) from dual;
>
>b
>-
>8
>
>In oracle 8 you get:
>
>ERROR:
>ORA-00932: inconsistent datatypes
>
>
>The def from the rdbms/admin/standard.sql file seems to be the same:
>
> function BITAND (LEFT binary_integer, RIGHT binary_integer)
> return binary_integer;
>
>
>Yeah ..... life sucks. Anyone here know if this is just plain FUBAR
>in Ora8 or whether you have to be smarter than the function :)
>
>-bret
>
>-----------== Posted via Deja News, The Discussion Network ==----------
>http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
 

Thomas Kyte
tkyte_at_us.oracle.com
Oracle Service Industries
Reston, VA USA

--
http://govt.us.oracle.com/ -- downloadable utilities  



Opinions are mine and do not necessarily reflect those of Oracle Corporation Received on Thu Mar 11 1999 - 19:37:26 CST

Original text of this message

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