Print Thread
ORA-1036 . call TOraclePackage procedure
#3430 05/16/02 02:48 PM
Joined: May 2002
Posts: 18
Valladolid
R
rdiez Offline OP
Member
OP Offline
Member
R
Joined: May 2002
Posts: 18
Valladolid
Hello!

PL/SQL Code:
---------------------------------------------
create or replace package body Actualizaciones as

Procedure Act_Conceptos_Mes(Desde in date,
hasta in date) is
Begin

delete begarinmo.conceptos_mes cm
where cm.fecha between desde and hasta;

insert into begarinmo.conceptos_mes
(CODIGO_ACTIVIDAD,CENTRO_TRABAJO,ANO,MES,CODIGO,DESCRIPCION1,SUBCODIGO,DESCRIPCION2,IMPORTE)
(
select * from ver_conceptos_mes
where to_date('01/'| |mes| |'/'| |ano) between desde and hasta
);
commit;
End;


Procedure Actualizar_Datos(Desde in date,
hasta in date) is
Begin
Act_conceptos_mes(Desde,hasta);
End;

end Actualizaciones;
---------------------------------------------
My Delphi Code (PKG_Actualizacion is a TOraclePackage):


with PKG_Actualizacion do
try
CallProcedure('Act_Conceptos_Mes', [DesdeFecha, HastaFecha]);
except
on E: EOracleError do
BEGIN
MessageDlg(e.message, mtError, [mbOK], 0);
Ok := False;
end;
end;

I've an exception when I execute this:
ORA-01036 ILEGAL VAR/NUM

Why? Thanks.






------------------

Re: ORA-1036 . call TOraclePackage procedure
#3431 05/16/02 03:29 PM
Joined: May 2002
Posts: 18
Valladolid
R
rdiez Offline OP
Member
OP Offline
Member
R
Joined: May 2002
Posts: 18
Valladolid
[quote]Originally posted by rdiez:
Hello!

PL/SQL Code:
[/quote]

Thanks I find the solution change the property parametermode to pmpositional


Moderated by  support 

Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 7.7.4
(Release build 20200307)
Responsive Width:

PHP: 7.1.33 Page Time: 0.026s Queries: 12 (0.005s) Memory: 2.5020 MB (Peak: 3.0430 MB) Data Comp: Off Server Time: 2024-05-20 11:54:32 UTC
Valid HTML 5 and Valid CSS