summaryrefslogtreecommitdiff
path: root/src/interfaces/python
AgeCommit message (Collapse)Author
2002-03-05Back out python patch:Bruce Momjian
Elliot Lee wrote: > This patch to the python bindings adds C versions of the often-used query > args quoting routines, as well as support for quoting lists e.g. > dbc.execute("SELECT * FROM foo WHERE blah IN %s", ([1,2,3],))
2002-03-05This patch to the python bindings adds C versions of the often-usedBruce Momjian
query args quoting routines, as well as support for quoting lists e.g. dbc.execute("SELECT * FROM foo WHERE blah IN %s", ([1,2,3],)) Elliot Lee
2001-12-13revert last changePeter Eisentraut
2001-12-03Bump version to 3.3. Mostly this is because there is some confusion aboutD'Arcy J.M. Cain
the latest version and I wanted to make sure that there was a clean release. I also change the build files as I discussed in my letter of Nov 6, 2001. At the time I was asked to hold off until after the release.
2001-11-19A bunch of small doco updates motivated by scanning the comments onTom Lane
the interactive docs.
2001-11-05New pgindent run with fixes suggested by Tom. Patch manually reviewed,Bruce Momjian
initdb/regression tests pass.
2001-11-04Version was 3.3 but last released version was 3.1. Setting to match restD'Arcy J.M. Cain
of the documentation in preparation for upcoming release.
2001-11-04Note that PyGreSQL has been checked against Python 2.1 now.D'Arcy J.M. Cain
2001-11-04The "%d", while syntactically correct, was confusing. Added a space toD'Arcy J.M. Cain
make it clearer that d was the argument to the format operator.
2001-10-28Another pgindent run. Fixes enum indenting, and improves #endifBruce Momjian
spacing. Also adds space for one-line comments.
2001-10-25pgindent run on all C files. Java run to follow. initdb/regressionBruce Momjian
tests pass.
2001-10-19> This stops the interface from leaking the row tuples (and thus theBruce Momjian
> results of every fetch). Stephen Robert Norris
2001-10-16Python handle as string all int8 values from postgresql. This could beBruce Momjian
view when using the aggregate function count() and function nextval that returns an int8 value, but in python is represented like string: >> db.query("select nextval('my_seq')").getresult() [('2',)] >> db.query("select count(*) from films").dictresult() [{'count': '120'}] Ricardo Caesar Lenzi
2001-09-19Change the version. We are moving towards the next release.D'Arcy J.M. Cain
Fixed a nasty bug that messed up negative money amounts.
2001-09-10Remove INV_ARCHIVE mention in python readme.Bruce Momjian
2001-08-24Rename config.h to pg_config.h and os.h to pg_config_os.h, fix a number ofPeter Eisentraut
places that were including the wrong files.
2001-08-16This patch fixes the well-known but unfixed bug that fetchone() always returnsBruce Momjian
the first result in the DB-API compliant wrapper. It turned out that the bug was way down in the C code. Gerhard Häring
2001-07-11Add prototypes to supress warnings.Bruce Momjian
2001-07-10Support fake root install, separate build dir, dependency tracking, ourPeter Eisentraut
choice of compiler and flags, uninstall, and peculiar Python installation layouts for PyGreSql. Also install into site-packages now, as officially recommended. And pgdb.py is also installed now, used to be forgotten.
2001-06-22Include catalog/pg_type.h instead of manually extracting the interestingPeter Eisentraut
oid values.
2001-06-20Make sure that everything says version 3.2.D'Arcy J.M. Cain
2001-06-20Add NUMERICOID to this script. This script can be run occasionally toD'Arcy J.M. Cain
make sure that we are using the right #defines in pgmodule.c but the OIDs are never actually expected to change.
2001-06-15Add bpchar to list of string types.D'Arcy J.M. Cain
Thanks to Steve McClure <smcclure@racemi.com> for the patch.
2001-05-30Add missing comma.D'Arcy J.M. Cain
2001-05-27Add NUMERICOID return type. Treat it as floating point for now. ThisD'Arcy J.M. Cain
could be changed if we create a new Python type that matches it better but NUMERIC <==> FLOAT probably works fine for most cases.
2001-05-25While changing Cygwin Python to build its core as a DLL (like Win32Bruce Momjian
Python) to support shared extension modules, I have learned that Guido prefers the style of the attached patch to solve the above problem. I feel that this solution is particularly appropriate in this case because the following: PglargeType PgType PgQueryType are already being handled in the way that I am proposing for PgSourceType. Jason Tishler
2001-05-25Back out, per Peter E.Bruce Momjian
> > The attached patch changes src/interfaces/python/GNUmakefile to use the > > value of DESTDIR like the rest (or at least most) of the PostgreSQL > > makefiles. I found this problem when trying to package a pre-built > > Cygwin PostgreSQL distribution, but this problem is platform independent.
2001-05-25The attached patch changes src/interfaces/python/GNUmakefile to use theBruce Momjian
value of DESTDIR like the rest (or at least most) of the PostgreSQL makefiles. I found this problem when trying to package a pre-built Cygwin PostgreSQL distribution, but this problem is platform independent. The problem manifests itself when one tries to install into a stagging area (e.g., to build a tarball) instead of a real install. In this case, pg.py and _pgmodule$(SO) still end up being installed in the configured prefix directory ignoring the value of DESTDIR. Unfortunately, this patch does not handle the case where PostgreSQL and Python are configured with different prefixes. Since the Python Makefile is automatically generated and does not use DESTDIR, I believe that this issue will be difficult to correct. If anyone has ideas on how to fix this issue, then I'm quite willing to rework the patch to take the suggestion into account. Jason Tishler
2001-05-15Fix small thinko.D'Arcy J.M. Cain
2001-05-12PL/Python should build portably now, if you can get over the fact thatPeter Eisentraut
there's no shared libpython. Test suite works as well. Also, add some documentation.
2001-05-02Add note explaining why inserts take longer as tables grow. Also suggestD'Arcy J.M. Cain
the way to handle this.
2001-05-02Change "|zzlzzzz" argument specification to "|zzizzzz" so that the code worksD'Arcy J.M. Cain
properly on 64 bit systems. Change submitted by Marc Poinot (Marc.Poinot@onera.fr)
2001-04-12I just noticed the beta comment. That's not actually true any moreD'Arcy J.M. Cain
so I removed it.
2001-03-30Marc-Andre is changing where DateTime goes. This change allows the moduleD'Arcy J.M. Cain
to work either way. Change submitted by Andrew Kuchling <akuchlin@mems-exchange.org>
2001-03-30Correct indenting in _quote() function.D'Arcy J.M. Cain
Fix submitted by Andrew Kuchling <akuchlin@mems-exchange.org>
2001-03-27Add changes from Mikhail Terekhov <terekhov@emc.com>.D'Arcy J.M. Cain
Use Extension method from distutils. Cleaned up mismatched indentation styles while I was at it.
2001-03-25Update the changes for version 3.2.D'Arcy J.M. Cain
2001-03-25Document the --with-python flag as a simpler way of installing theD'Arcy J.M. Cain
PyGreSQL module when installing PostgreSQL. Document the location of the WIN32 binaries.
2001-03-25Pick up any extra -I options for Python build.Peter Eisentraut
2001-03-22pgindent run. Make it all clean.Bruce Momjian
2001-03-15Fix parameter handling.D'Arcy J.M. Cain
Fix a bug where cs.execute('select %d + %d', (1, 2)) would get interpreted as cs.executemany('select %d + %d', (1, 2))
2001-03-15Add WIN32 support.D'Arcy J.M. Cain
2001-03-03Update the version number. We may change this to 7.1 if we align it withD'Arcy J.M. Cain
PostgreSQL. Add notice that development has moved into the PostgreSQL tree.
2001-03-03Add oid to list of keys cached.D'Arcy J.M. Cain
Add a test to avoid an exception in certain cases.
2001-03-03Incrementing version number in preparation for next release. Note that ID'Arcy J.M. Cain
am talking with Thomas Lockhart about the idea of bringing the PyGreSQL version number into alignment with PostgreSQL so this may change to 7.1 before the release. I have added to the copyright to indicate that from now on the PostgreSQL copyright will apply. If someone wants to make that clearer please do. The existing copyrights need to stay there for now but if necessary I can ask Pascal Andre if he agrees to a different wording. Added reference to the Python DB-API 2.0 compliant API wrapper. Added reference to the PyGreSQL mailing list.
2001-03-03Added postgres.h header for more type checking.D'Arcy J.M. Cain
Changed the way that OID is retrieved on inserts. PQoidStatus appears to be deprecated so I am using PQoidValue instead.
2001-02-07Only pass the -L* portions of LDFLAGS to the Python build environment.Peter Eisentraut
Other flags can have unpredictable effects when Python uses different commands to build than we do.
2001-02-04Pass LDFLAGS along with LIBS to the Python build stuff, especially to pickPeter Eisentraut
up -L options.
2001-02-02Apply patches for QNX from MaurizioBruce Momjian
2000-12-30Fix unportable use of '!' in shell commands.Peter Eisentraut