aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/python
Commit message (Collapse)AuthorAge
...
* Another pgindent run. Fixes enum indenting, and improves #endifBruce Momjian2001-10-28
| | | | spacing. Also adds space for one-line comments.
* pgindent run on all C files. Java run to follow. initdb/regressionBruce Momjian2001-10-25
| | | | tests pass.
* > This stops the interface from leaking the row tuples (and thus theBruce Momjian2001-10-19
| | | | | | > results of every fetch). Stephen Robert Norris
* Python handle as string all int8 values from postgresql. This could beBruce Momjian2001-10-16
| | | | | | | | | | | | | | | 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
* Change the version. We are moving towards the next release.D'Arcy J.M. Cain2001-09-19
| | | | Fixed a nasty bug that messed up negative money amounts.
* Remove INV_ARCHIVE mention in python readme.Bruce Momjian2001-09-10
|
* Rename config.h to pg_config.h and os.h to pg_config_os.h, fix a number ofPeter Eisentraut2001-08-24
| | | | places that were including the wrong files.
* This patch fixes the well-known but unfixed bug that fetchone() always returnsBruce Momjian2001-08-16
| | | | | | | 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
* Add prototypes to supress warnings.Bruce Momjian2001-07-11
|
* Support fake root install, separate build dir, dependency tracking, ourPeter Eisentraut2001-07-10
| | | | | | 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.
* Include catalog/pg_type.h instead of manually extracting the interestingPeter Eisentraut2001-06-22
| | | | oid values.
* Make sure that everything says version 3.2.D'Arcy J.M. Cain2001-06-20
|
* Add NUMERICOID to this script. This script can be run occasionally toD'Arcy J.M. Cain2001-06-20
| | | | | make sure that we are using the right #defines in pgmodule.c but the OIDs are never actually expected to change.
* Add bpchar to list of string types.D'Arcy J.M. Cain2001-06-15
| | | | Thanks to Steve McClure <smcclure@racemi.com> for the patch.
* Add missing comma.D'Arcy J.M. Cain2001-05-30
|
* Add NUMERICOID return type. Treat it as floating point for now. ThisD'Arcy J.M. Cain2001-05-27
| | | | | could be changed if we create a new Python type that matches it better but NUMERIC <==> FLOAT probably works fine for most cases.
* While changing Cygwin Python to build its core as a DLL (like Win32Bruce Momjian2001-05-25
| | | | | | | | | | | | | | | 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
* Back out, per Peter E.Bruce Momjian2001-05-25
| | | | | | | > > 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.
* The attached patch changes src/interfaces/python/GNUmakefile to use theBruce Momjian2001-05-25
| | | | | | | | | | | | | | | | | | | | 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
* Fix small thinko.D'Arcy J.M. Cain2001-05-15
|
* PL/Python should build portably now, if you can get over the fact thatPeter Eisentraut2001-05-12
| | | | | there's no shared libpython. Test suite works as well. Also, add some documentation.
* Add note explaining why inserts take longer as tables grow. Also suggestD'Arcy J.M. Cain2001-05-02
| | | | the way to handle this.
* Change "|zzlzzzz" argument specification to "|zzizzzz" so that the code worksD'Arcy J.M. Cain2001-05-02
| | | | | | properly on 64 bit systems. Change submitted by Marc Poinot (Marc.Poinot@onera.fr)
* I just noticed the beta comment. That's not actually true any moreD'Arcy J.M. Cain2001-04-12
| | | | so I removed it.
* Marc-Andre is changing where DateTime goes. This change allows the moduleD'Arcy J.M. Cain2001-03-30
| | | | | to work either way. Change submitted by Andrew Kuchling <akuchlin@mems-exchange.org>
* Correct indenting in _quote() function.D'Arcy J.M. Cain2001-03-30
| | | | Fix submitted by Andrew Kuchling <akuchlin@mems-exchange.org>
* Add changes from Mikhail Terekhov <terekhov@emc.com>.D'Arcy J.M. Cain2001-03-27
| | | | | | Use Extension method from distutils. Cleaned up mismatched indentation styles while I was at it.
* Update the changes for version 3.2.D'Arcy J.M. Cain2001-03-25
|
* Document the --with-python flag as a simpler way of installing theD'Arcy J.M. Cain2001-03-25
| | | | | | PyGreSQL module when installing PostgreSQL. Document the location of the WIN32 binaries.
* Pick up any extra -I options for Python build.Peter Eisentraut2001-03-25
|
* pgindent run. Make it all clean.Bruce Momjian2001-03-22
|
* Fix parameter handling.D'Arcy J.M. Cain2001-03-15
| | | | | Fix a bug where cs.execute('select %d + %d', (1, 2)) would get interpreted as cs.executemany('select %d + %d', (1, 2))
* Add WIN32 support.D'Arcy J.M. Cain2001-03-15
|
* Update the version number. We may change this to 7.1 if we align it withD'Arcy J.M. Cain2001-03-03
| | | | | | PostgreSQL. Add notice that development has moved into the PostgreSQL tree.
* Add oid to list of keys cached.D'Arcy J.M. Cain2001-03-03
| | | | Add a test to avoid an exception in certain cases.
* Incrementing version number in preparation for next release. Note that ID'Arcy J.M. Cain2001-03-03
| | | | | | | | | | | | | | | 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.
* Added postgres.h header for more type checking.D'Arcy J.M. Cain2001-03-03
| | | | | Changed the way that OID is retrieved on inserts. PQoidStatus appears to be deprecated so I am using PQoidValue instead.
* Only pass the -L* portions of LDFLAGS to the Python build environment.Peter Eisentraut2001-02-07
| | | | | Other flags can have unpredictable effects when Python uses different commands to build than we do.
* Pass LDFLAGS along with LIBS to the Python build stuff, especially to pickPeter Eisentraut2001-02-04
| | | | up -L options.
* Apply patches for QNX from MaurizioBruce Momjian2001-02-02
|
* Fix unportable use of '!' in shell commands.Peter Eisentraut2000-12-30
|
* Update to PyGreSQL 3.1:Bruce Momjian2000-11-10
| | | | | | | | | | | | | | | | | | | | | | | | | | 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. (tv@beamnet.de) Fix pgdb.py to send port as integer to lower level function (dildog@l0pht.com) Change pg.py to speed up some operations Allow updates on tables with no primary keys. D'Arcy J.M. Cain
* Add missing python files.Bruce Momjian2000-10-02
|
* Update for PyGreSQL 3.0, from D'Arcy J.M. CainBruce Momjian2000-10-02
|
* Fix relative path references so that make knowns which dependencies referPeter Eisentraut2000-08-31
| | | | | to one another. Sort out builddir vs srcdir variable namings. Remove some now obsoleted make variables.
* Makefile cleanup for interface tree. Now essentially with all thePeter Eisentraut2000-06-28
| | | | | | | | | | | | | | | | | | | | | 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.
* Moved the intricacies of the perl interface build into its own makefilePeter Eisentraut2000-06-10
| | | | | | | | | | | | | | | | | | 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.
* Cleanup of <> and ""Bruce Momjian2000-05-29
|
* Update pygresql version stamp.Bruce Momjian1999-05-28
|
* pgindent run over code.Bruce Momjian1999-05-25
|