Mikael
2008-02-08 10:01:59 UTC
Delphi 2006 and Interbase 7.5.1
I can't understand why this command (qryReset.ExecSQL(False);) don't delete
the rows?
Mikael
qryReset.Close;
qryReset.sql.text:='Delete from ESVInvoiceDay where aDay between ' +
quotedStr(POTStart) + ' and ' + quotedStr(POTStart);
WriteReport('DoReset: Executing = ' + Trim(qryReset.sql.text),1,4);
nrRowsAffected:=qryReset.ExecSQL(False);
WriteReport('DoReset: ' + IntToStr(nrRowsAffected) + ' rows
deleted',1,4);
2008-02-08 10:57:18: DoReset: StartTransaction
2008-02-08 10:57:18: DoReset: Executing = Delete from ESVInvoiceDay
where aDay between '2008-02-08' and '2008-02-08'
2008-02-08 10:57:18: DoReset: 0 rows deleted
2008-02-08 10:57:18: DoReset: Commit
I can't understand why this command (qryReset.ExecSQL(False);) don't delete
the rows?
Mikael
qryReset.Close;
qryReset.sql.text:='Delete from ESVInvoiceDay where aDay between ' +
quotedStr(POTStart) + ' and ' + quotedStr(POTStart);
WriteReport('DoReset: Executing = ' + Trim(qryReset.sql.text),1,4);
nrRowsAffected:=qryReset.ExecSQL(False);
WriteReport('DoReset: ' + IntToStr(nrRowsAffected) + ' rows
deleted',1,4);
2008-02-08 10:57:18: DoReset: StartTransaction
2008-02-08 10:57:18: DoReset: Executing = Delete from ESVInvoiceDay
where aDay between '2008-02-08' and '2008-02-08'
2008-02-08 10:57:18: DoReset: 0 rows deleted
2008-02-08 10:57:18: DoReset: Commit