I have a stored procedure in Firebird that returns two parameters:
CREATE PROCEDURE OPDUTY_LOGON_LOGOFF_TIME(
INDIVIDUAL_IDENT CHAR(6) CHARACTER SET ASCII,
QUEUEEVENT_IDENT BIGINT)
RETURNS(
OPDUTYSTARTTIME TIMESTAMP,
OPDUTYENDTIME TIMESTAMP)
AS....
But when I call it from Delphi 2005 using FIBPlus 6.7.0, they return value of zero. When I run it in Firebird, it functions correctly. I have used a SQL monitor to check that it is being called, and that the correct values for the input parameters are supplied. Can anyone help me on this?
try
dtmUpdateCalculationDatase
tModule.st
pOpDutyLog
onLogoffTi
me.
ParamByName('INDIVIDUAL_ID
ENT').AsSt
ring := uclIndividual;
dtmUpdateCalculationDatase
tModule.st
pOpDutyLog
onLogoffTi
me.
ParamByName('QUEUEEVENT_ID
ENT').AsIn
t64 := uclQueueEvent;
dtmUpdateCalculationDatase
tModule.st
pOpDutyLog
onLogoffTi
me.
ExecProc;
OpDutyStartTime := dtmUpdateCalculationDatase
tModule.
stpOpDutyLogonLogoffTime.P
aramByName
('OPDUTYST
ARTTIME').
AsDateTime
;
OpDutyEndTime := dtmUpdateCalculationDatase
tModule.
stpOpDutyLogonLogoffTime.P
aramByName
('OPDUTYEN
DTIME').As
DateTime;
finally
dtmUpdateCalculationDatase
tModule.st
pOpDutyLog
onLogoffTi
me.Close;
Start Free Trial