Problem in "RowsAffected"
Posted: Tue 15 May 2007 20:23
- i have created a tsqlquery, set its SQL.Text to an update statement with params.
- i start a transaction and then i prepare the query.
- then i perform a loop on a dataset. in each iteration i assign values from the dataset's fields to the params of the query, and then i do :
recs:=qry.ExecSQL(False);
...etc...some how i use the recs's value to perform other logic here....
Now the fact is that recs has a value of 1 (one) only during the first iteration. all subsequent iterations return 0 (zero).
I have tested that although the recs is returned as 0 the records in the database are UPDATED.
Now to me this seems like a BUG in the driver (since if i switch drivers and use the Borland's driver, the recs is getting the correct value - although it has other problems and that's why i'm testing your driver).
So, are you aware of this? are you going to fix it any time soon (time is critical - as always - in the project i'm going to need the driver).
TIA,
Yoda.
- i start a transaction and then i prepare the query.
- then i perform a loop on a dataset. in each iteration i assign values from the dataset's fields to the params of the query, and then i do :
recs:=qry.ExecSQL(False);
...etc...some how i use the recs's value to perform other logic here....
Now the fact is that recs has a value of 1 (one) only during the first iteration. all subsequent iterations return 0 (zero).
I have tested that although the recs is returned as 0 the records in the database are UPDATED.
Now to me this seems like a BUG in the driver (since if i switch drivers and use the Borland's driver, the recs is getting the correct value - although it has other problems and that's why i'm testing your driver).
So, are you aware of this? are you going to fix it any time soon (time is critical - as always - in the project i'm going to need the driver).
TIA,
Yoda.