Hi, I've got a problem calling a function in an Oracle
package.
I've created the following parameterMap and statement:
<parameterMap id="InstanciarPatronParams"
class="hashtable">
<parameter property="ID_PATRON" column="p_nIdPatron"
dbType="Int32"/>
<parameter property="CLAVE" column="p_sClave"
dbType="VarChar"/>
</parameterMap>
<procedure id="InstanciarPatron"
parameterMap="InstanciarPatronParams"
resultClass="string">
patrones.instanciaPatron
</procedure>
When I call to this procedure...
Hashtable p = new Hashtable();
p["ID_PATRON"] = id_patron;
p["CLAVE"] = clave;
return
ExecuteQueryForObject("InstanciarPatron",p).ToString();
the error message is:
ORA-06550: línea 1, columna 7: PLS-00221:
'INSTANCIAPATRON' no es un procedimiento o no se ha
definido ORA-06550: línea 1, columna 7: PL/SQL:
Statement ignored
what means ibatis is performing the call to the
function like a procedure not like a function.
Any idea in what I'm doing wrong?
Thanks in advance :-)
Angel
______________________________________________
LLama Gratis a cualquier PC del Mundo.
Llamadas a fijos y móviles desde 1 céntimo por minuto.
http://es.voice.yahoo.com