UniStoredProc Component bug?
Posted: Mon 29 Nov 2010 09:25
Hi.
There is TUniStoredProc component problem.
// source code...
Debug := True;
with UniStoredProc1 do
begin
DisableControls;
Close;
ParamByName('ThisMonth').AsString := ThisMonth;
ParamByName('Items').AsString := WhereText;
ParamByName('pToDay').AsString := FormatDateTime('YYYYMMDD', ToDay.Date);
ParamByName('FromDate').AsString := FormatDateTime('YYYYMMDD', FromDate.Date);
ParamByName('ToDate').AsString := FormatDateTime('YYYYMMDD', ToDay.Date);
ParamByName('StartDay').AsString := FormatDateTime('YYYYMMDD', StartOfTheMonth(ToDay.Date));
ParamByName('Seq').AsInteger := DeptInfo.DeptSeq;
Open;
.........
end;
When the first time execution is NULL value.
{:RETURN_VALUE = CALL CHOA_GetCustCount (:ThisMonth, :Items, :pToDay, :StartDay, :FromDate, :ToDate, :Seq)}
:RETURN_VALUE(Integer,RESULT)=
:ThisMonth(String[0],IN)=
:Items(String[0],IN)=
:pToDay(String[0],IN)=
:StartDay(String[0],IN)=
:FromDate(String[0],IN)=
:ToDate(String[0],IN)=
:Seq(Integer,IN)=
But when the second time execution is normal.
{:RETURN_VALUE = CALL CHOA_GetCustCount (:ThisMonth, :Items, :pToDay, :StartDay, :FromDate, :ToDate, :Seq)}
:RETURN_VALUE(Integer,RESULT)=0
:ThisMonth(WideString[8],IN)='20070115'
:Items(WideString[6],IN)='DHE023'
:pToDay(WideString[8],IN)='20070115'
:StartDay(WideString[8],IN)='20070101'
:FromDate(WideString[8],IN)='20070101'
:ToDate(WideString[8],IN)='20070115'
:Seq(Integer,IN)=0
TMSStoredProc component is no problem!
Please test and reply.
MS Sqlserver 2008 sp2
Delphi 2010
TUniStoredProc 3.50.0.13
TMSStoredProc 5.00.0.2
Thanks.
There is TUniStoredProc component problem.
// source code...
Debug := True;
with UniStoredProc1 do
begin
DisableControls;
Close;
ParamByName('ThisMonth').AsString := ThisMonth;
ParamByName('Items').AsString := WhereText;
ParamByName('pToDay').AsString := FormatDateTime('YYYYMMDD', ToDay.Date);
ParamByName('FromDate').AsString := FormatDateTime('YYYYMMDD', FromDate.Date);
ParamByName('ToDate').AsString := FormatDateTime('YYYYMMDD', ToDay.Date);
ParamByName('StartDay').AsString := FormatDateTime('YYYYMMDD', StartOfTheMonth(ToDay.Date));
ParamByName('Seq').AsInteger := DeptInfo.DeptSeq;
Open;
.........
end;
When the first time execution is NULL value.
{:RETURN_VALUE = CALL CHOA_GetCustCount (:ThisMonth, :Items, :pToDay, :StartDay, :FromDate, :ToDate, :Seq)}
:RETURN_VALUE(Integer,RESULT)=
:ThisMonth(String[0],IN)=
:Items(String[0],IN)=
:pToDay(String[0],IN)=
:StartDay(String[0],IN)=
:FromDate(String[0],IN)=
:ToDate(String[0],IN)=
:Seq(Integer,IN)=
But when the second time execution is normal.
{:RETURN_VALUE = CALL CHOA_GetCustCount (:ThisMonth, :Items, :pToDay, :StartDay, :FromDate, :ToDate, :Seq)}
:RETURN_VALUE(Integer,RESULT)=0
:ThisMonth(WideString[8],IN)='20070115'
:Items(WideString[6],IN)='DHE023'
:pToDay(WideString[8],IN)='20070115'
:StartDay(WideString[8],IN)='20070101'
:FromDate(WideString[8],IN)='20070101'
:ToDate(WideString[8],IN)='20070115'
:Seq(Integer,IN)=0
TMSStoredProc component is no problem!
Please test and reply.
MS Sqlserver 2008 sp2
Delphi 2010
TUniStoredProc 3.50.0.13
TMSStoredProc 5.00.0.2
Thanks.