On mercredi 08 octobre 2008, Doriano Blengino wrote:
> In my program I have to delete some records from a table (to rewrite
> them just after).
> If I issue something like:
>
> res = db.Exec("delete from lotti where tcaus=2 and numfat=25")
>
> how can I know that the deletion has been executed without errors? Has
> the "res" variable any meaning after a deletion, or a error is raised in
> case of unsuccessful deletion?
>
> Thanks.
>
You know that the deletion was ok if you don't get any error.
Of course, that is true only if the underlying database client library
effectively returns an error if the delete request fails!
Regards,
--
Benoit Minisini
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Gambas-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gambas-user