Skip site navigation (1) Skip section navigation (2)

python - lo: Add types.array.

From: jwp(at)pgfoundry(dot)org (James William Pye)
To: pgsql-committers(at)postgresql(dot)org
Subject: python - lo: Add types.array.
Date: 2007-11-27 15:47:22
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-committers
Log Message:
Add types.array.

This provides a Postgres'ish interface to array objects. Notably, IndexErrors do
not occur as they would with standard Python sequence types; None is returned as
NULL is returned in Postgres. Python's 0-based indexing and negative indexes are

Notably, this type does not enforce consistent element types.

Modified Files:
    lo/postgresql: (r1.2 -> r1.3)

pgsql-committers by date

Next:From: Bruce MomjianDate: 2007-11-27 16:46:36
Subject: pgsql: Add example of MONEY casting to numeric if locale is known.
Previous:From: James William PyeDate: 2007-11-27 15:32:29
Subject: python - typ: Use a generator instead of a list for record_unpack.

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group