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

Federico Di Gregorio fog@initd.org
22 Jan 2003 16:34:54 +0100


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

Il mer, 2003-01-22 alle 16:24, Jon Erickson ha scritto:
> On Tue, 2003-01-21 at 13:47, Dieter Maurer wrote:
> >  > Passing None as max_rows to mean "no limits" is much more
> >  > meaningful here, IMHO.
> > The problem here is, that the value should be changable by the ZMI.
> > There, "None" for "no limits" and an integer for "that many rows"
> > is not very good, as the content managers may not know Python.
>=20
> How about a null max_rows value to equal "no limits".  If the content
> manager wants all rows from the query returned, he leaves max_rows
> blank.  If he wants to restrict the size of the result set, he can
> provide an integer value.
>=20
> To me, it seems non-intuative that a max_rows value of "0" =3D=3D "return
> all rows".

this is how it already works.=20

--=20
/federico


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

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

iD8DBQA+LrodvcCgrgZGjesRAtdpAKDWMRGzoV4MJwGJ4YDlhisq4C+kZgCfSich
Oe3iYAzdMchRMHvozxaFa2s=
=QHg/
-----END PGP SIGNATURE-----

--=-dPCNVCbWhvj7Nl62az0n--