[Zope-DB] Re: ZPsycopgDA (version 1.0.13) problems

Federico Di Gregorio fog@debian.org
21 Jan 2003 13:38:11 +0100


--=-Z9EcDgfIJC/Sy96zZ3V9
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

Il lun, 2003-01-20 alle 21:31, Dieter Maurer ha scritto:
> Federico Di Gregorio wrote at 2003-1-20 14:25 +0100:
>  > >   *  "max_rows=3D=3D0" is interpreted as to not return results at al=
l.
>  > >      It seems more consistent with other use of the value "0"
>  > >      to interpret it as "no restriction"
>  >=20
>  > ok. i'll just make sure zope does not assign a different meaning to 0.
> Other DA's (e.g. "ZMySQLDA") interpret "0" as "no limitation".
> The same interpretation is used in Zope session implementation.
>=20
> Interpreting "0" as "do not return any results" is not useful.

done.

>=20
>  > ...
>  > >   *  I have been unable to understand the motivation for the "failur=
e"
>  > >      use in "db.DA.query".
>  >=20
>  > if a generic (not catched) error happens, we try to close and reopen t=
he
>  > connection a number of times before returning an error. this code was
>  > copied from ZOracle and i never been completely satisfacted by it.
> That would seem reasonable...
>=20
> But the code looks different:
>=20
>     you fail 1000 times, then you close/reopen and try again.

fixed.


> However, the problem happens non-deterministically; we cannot yet
> reproduce it.
> I will let you know when we know more...

very well, thank you very much for your help,

/federico

--=-Z9EcDgfIJC/Sy96zZ3V9
Content-Type: application/pgp-signature; name=signature.asc

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQA+LT8zvcCgrgZGjesRAiTbAKCBsuOhetQ8TFfGX1mwItei1TJH0QCeNuXL
XxAonecHnSaIYt20vLP7PEI=
=dgPD
-----END PGP SIGNATURE-----

--=-Z9EcDgfIJC/Sy96zZ3V9--