Number and Double
Posted: Tue 17 Jul 2012 05:18
Hello,
I'm using ODAC 8.0.1
create table aaa(inId NUMBER(1));
create view bbb as select max(inId) as "id" from aaa;
insert into aaa values(1);
insert into aaa values(2);
insert into aaa values(3);
create or replace procedure ccc (cr out SYS_REFCURSOR)
as
begin
open cr for select inid from aaa;
end;
create or replace procedure ddd (cr out SYS_REFCURSOR)
as
begin
open cr for select id from bbb;
end;
If I call ccc proc - I get long datatype which is correct.
INID = 1 = Long
----------------------------------------------
INID = 2 = Long
----------------------------------------------
INID = 3 = Long
----------------------------------------------
If I call ddd proc - I get double datatype which is INCORRECT.
id = 3 = Double
If there any way to get in a dataset the underlying type?
I'm using ODAC 8.0.1
create table aaa(inId NUMBER(1));
create view bbb as select max(inId) as "id" from aaa;
insert into aaa values(1);
insert into aaa values(2);
insert into aaa values(3);
create or replace procedure ccc (cr out SYS_REFCURSOR)
as
begin
open cr for select inid from aaa;
end;
create or replace procedure ddd (cr out SYS_REFCURSOR)
as
begin
open cr for select id from bbb;
end;
If I call ccc proc - I get long datatype which is correct.
INID = 1 = Long
----------------------------------------------
INID = 2 = Long
----------------------------------------------
INID = 3 = Long
----------------------------------------------
If I call ddd proc - I get double datatype which is INCORRECT.
id = 3 = Double
If there any way to get in a dataset the underlying type?