0

Need some help for this error message that appears on delphi 7 First, i will describe some script: On mySQL procedure script:

CREATE PROCEDURE ActualStok()

NOT DETERMINISTIC
CONTAINS SQL
SQL SECURITY DEFINER
COMMENT ''

BEGIN

 SELECT B.KD_BRG, B.NAMA_BRG, B.UKURAN, B.SATUAN,
 (B.JUMLAH_BRG-(SELECT IFNULL(SUM(D.JUMLAH_PAKAI_BRG),0)
                    FROM DETAIL_PAKAI_BRG D
 WHERE (D.STATUS_AMBIL='0') AND (D.KD_BRG=B.KD_BRG) AND (D.UKURAN=B.UKURAN)
                                                    AND (D.SATUAN=B.SATUAN))),
 B.KETERANGAN_BRG
 FROM BARANG B;
END;

Then i check that procedure --> CALL ActualStok(); And it's work. mySQL show me the expected result, and fine. There is no error.

So on delphi program, i try to execute this script:

procedure TFrmPersediaan.Button1Click(Sender: TObject);

begin
   FrmDtm.ADOQBarang.Close;
   FrmDtm.ADOQBarang.SQL.Clear;
   FrmDtm.ADOQBarang.SQL.Add('CALL ActualStok()');
   FrmDtm.ADOQBarang.Open;
end;

Delphi shows me a error message "Multiple-step operation generated errors. Check each status value."

Please somebody to help me to solve this problem. Thank you for any participant.

4

1 回答 1

2

这可能是由于 ADO 不支持的日期值。在我的情况下,错误是由我的 Oracle 数据库中的日期值 01-01-0020 引起的,ADO 无法识别该日期值。

于 2014-02-19T11:22:37.977 回答