Advertisement

08.20.2007 at 03:25AM PDT, ID: 22773584
[x]
Attachment Details

Retruning parameters from stored procedure to Delphi using FIBplus

Asked by lappins in Delphi Database, Delphi Programming, Interbase / Firebird Database

Tags: delphi, stored, procedure, fibplus

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
      dtmUpdateCalculationDatasetModule.stpOpDutyLogonLogoffTime.
        ParamByName('INDIVIDUAL_IDENT').AsString := uclIndividual;
      dtmUpdateCalculationDatasetModule.stpOpDutyLogonLogoffTime.
        ParamByName('QUEUEEVENT_IDENT').AsInt64 := uclQueueEvent;
      dtmUpdateCalculationDatasetModule.stpOpDutyLogonLogoffTime.
        ExecProc;
      OpDutyStartTime := dtmUpdateCalculationDatasetModule.
        stpOpDutyLogonLogoffTime.ParamByName('OPDUTYSTARTTIME').AsDateTime;
      OpDutyEndTime := dtmUpdateCalculationDatasetModule.
        stpOpDutyLogonLogoffTime.ParamByName('OPDUTYENDTIME').AsDateTime;
    finally
      dtmUpdateCalculationDatasetModule.stpOpDutyLogonLogoffTime.Close;

Start Free Trial
[+][-]08.20.2007 at 05:11AM PDT, ID: 19729658

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Delphi Database, Delphi Programming, Interbase / Firebird Database
Tags: delphi, stored, procedure, fibplus
Sign Up Now!
Solution Provided By: NickUpson
Participating Experts: 3
Solution Grade: B
 
 
[+][-]08.20.2007 at 06:23AM PDT, ID: 19730130

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]08.20.2007 at 08:07AM PDT, ID: 19730892

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.20.2007 at 08:38AM PDT, ID: 19731194

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.20.2007 at 10:08AM PDT, ID: 19731865

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.21.2007 at 12:36AM PDT, ID: 19736016

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]08.21.2007 at 01:44AM PDT, ID: 19736194

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.21.2007 at 02:17AM PDT, ID: 19736275

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.21.2007 at 04:38AM PDT, ID: 19736820

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628