summaryrefslogtreecommitdiff
path: root/src/interfaces/python
AgeCommit message (Collapse)Author
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 <[email protected]> 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 ([email protected])
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 <[email protected]>
2001-03-30Correct indenting in _quote() function.D'Arcy J.M. Cain
Fix submitted by Andrew Kuchling <[email protected]>
2001-03-27Add changes from Mikhail Terekhov <[email protected]>.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
2000-11-10Update to PyGreSQL 3.1:Bruce Momjian
Fix some quoting functions. In particular handle NULLs better. Use a method to add primary key information rather than direct manipulation of the class structures. Break decimal out in _quote (in pg.py) and treat it as float. Treat timestamp like date for quoting purposes. Remove a redundant SELECT from the get method speeding it, and insert since it calls get, up a little. Add test for BOOL type in typecast method to pgdbTypeCache class. ([email protected]) Fix pgdb.py to send port as integer to lower level function ([email protected]) Change pg.py to speed up some operations Allow updates on tables with no primary keys. D'Arcy J.M. Cain
2000-10-02Add missing python files.Bruce Momjian
2000-10-02Update for PyGreSQL 3.0, from D'Arcy J.M. CainBruce Momjian
2000-08-31Fix relative path references so that make knowns which dependencies referPeter Eisentraut
to one another. Sort out builddir vs srcdir variable namings. Remove some now obsoleted make variables.
2000-06-28Makefile cleanup for interface tree. Now essentially with all thePeter Eisentraut
standard targets and behaviour. Replaced Makefile.in's with Makefile's and declared the respective variables in Makefile.global. maintainer-clean target now available at top level, although it does not work in the backend tree yet. Cleanup pass over Makefile.shlib, renamed some targets and variables. The shared library symlink tests are now done by make, not the shell. ecpg: Remove one warning in sloppy flex output. PL/Perl and Perl interface: the MakeMaker documentation is confusing, the realclean target *does* "delete derived files", but it also uninstalls them. Don't use that. The submake targets in the various bin directories that update libpq should `make all', not `make libpq.a'. That is a) unportable, and b) doesn't build the shared library.
2000-06-10Moved the intricacies of the perl interface build into its own makefilePeter Eisentraut
that now functions as a wrapper around the MakeMaker stuff. It might even behave sensically when we have separate build dirs. Same for plperl, which of course still doesn't work very well. Made sure that plperl respects the choice of --libdir. Added --with-python to automatically build and install the Python interface. Works similarly to the Perl5 stuff. Moved the burden of the distclean targets lower down into the source tree. Eventually, each make file should have its own. Added automatic remaking of makefiles and configure. Currently only for the top-level because of a bug(?) in Autoconf. Use GNU `missing' to work around missing autoconf and aclocal. Start factoring out macros into their own config/*.m4 files to increase readability and organization.
2000-05-29Cleanup of <> and ""Bruce Momjian
1999-05-28Update pygresql version stamp.Bruce Momjian
1999-05-25pgindent run over code.Bruce Momjian