[DB-SIG] Optional DB API Extensions

Federico Di Gregorio fog@debian.org
26 Oct 2001 09:51:54 +0200


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

On Thu, 2001-10-25 at 19:52, brian zimmer wrote:
> What happens in the case of:
>=20
> cur.execute("insert into x values (?, ?)", [(a, b), (c, d)])
>=20
> I presume the .lastrowid is the value of the insert with (c, d)?=20

psycopg does that. what about two attributes?

	lastrowid - rowid of the last execute
	lastrowids - a tuple of rowids from the last executemany

too complicated?

--=20
Federico Di Gregorio
Debian GNU/Linux Developer & Italian Press Contact        fog@debian.org
INIT.D Developer                                           fog@initd.org
  The devil speaks truth much oftener than he's deemed.
                                   He has an ignorant audience. -- Byron

--=-d6EySIi5FKPOzvlJpHm5
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iEYEABECAAYFAjvZFhoACgkQvcCgrgZGjevbVACgtMuNYqN+mfVVxR+677AnXOjf
Nw4An32PA4I28sdJMB9MJDjwjbMjiD4p
=X4X+
-----END PGP SIGNATURE-----

--=-d6EySIi5FKPOzvlJpHm5--