[Zope-DB] How to get the number of updated records in Python

Harry Wilkinson harryw@nipltd.com
Wed, 20 Feb 2002 17:32:59 +0000


I can't think of any way to do it like that, but I could be wrong....

Can't you just count the records with a SELECT COUNT() first?


On Tuesday 19 February 2002 11:03 pm, Dieter Maurer wrote:
> A van Schie writes:
>  > How can I get the the number of records that have been
>  > updated by an Z SQL Method in Python ?
>  > UPDATE and INSERT statements do not return any row
>  > so how can I find out if the call was succesful and on
>  > howmany records ?
>
> I fear you can't...
>
>
> Dieter
>
> _______________________________________________
> Zope-DB mailing list
> Zope-DB@zope.org
> http://lists.zope.org/mailman/listinfo/zope-db