I'm calling a PL/SQL function who returns a table of varchar2. Here is its signature:
create or replace FUNCTION fn_get_estados
(Pcuenta IN varchar2,Pdia_corte integer)
RETURN t_estado_disp_table
AS
Here is the type:
create or replace TYPE t_estado_Disp_type AS OBJECT
(date_inicial VARCHAR2(15),
date_final VARCHAR2(15));
create or replace TYPE t_estado_detalle_table AS TABLE OF t_estado_detalle_type;
When I call that function:
select date_inicial,date_final from table( fn_get_estados( '0000268') );
in SQL Developer the results are like :
10/01/2015
but when I call that function with the exact SQL from a Java web application deployed in a websphere 8.5.5 and the println(resulset.getString(1))
it's like this:
10-JAN-2015
I just don't want the app server to do any casting. Is there any configuration to avoid that casting?