aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/python
Commit message (Collapse)AuthorAge
* PyGreSQL causes a segfault when used with a Python executable that wasD'Arcy J.M. Cain2002-03-20
| | | | | compiled with --with-pymalloc. This change fixes that. Thanks to Dave Wallace <dwallace@udel.edu>
* Bump version number to match tree.D'Arcy J.M. Cain2002-03-19
|
* Fix name in comments and add info about this module's place in PyGreSQL.D'Arcy J.M. Cain2002-03-19
|
* > I am backing out this patch. Please resubmit with this corrected. Thanks.Bruce Momjian2002-03-19
| | | | | | | | | | | | | | | | | > > I am running Python 1.5. Therein lies the problem... :) Since it appears you have the requirement of supporting old python versions, attached is just the pgdb.py part of the patch (with a fix for DateTime handling). It has the same functionality but certainly won't be quite as fast. Given the absence of _PyString_Join in python1.5, it's a pain to get the C variants working for all versions. The pgdb.py patch does leaves the hooks in, should someone wish to do the optimization at a later point. Elliot Lee
* Back out python patch:Bruce Momjian2002-03-05
| | | | | | | | 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],))
* This patch to the python bindings adds C versions of the often-usedBruce Momjian2002-03-05
| | | | | | | 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
* revert last changePeter Eisentraut2001-12-13
|
* Bump version to 3.3. Mostly this is because there is some confusion aboutD'Arcy J.M. Cain2001-12-03
| | | | | | | 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.
* A bunch of small doco updates motivated by scanning the comments onTom Lane2001-11-19
| | | | the interactive docs.
* New pgindent run with fixes suggested by Tom. Patch manually reviewed,Bruce Momjian2001-11-05
| | | | initdb/regression tests pass.
* Version was 3.3 but last released version was 3.1. Setting to match restD'Arcy J.M. Cain2001-11-04
| | | | of the documentation in preparation for upcoming release.
* Note that PyGreSQL has been checked against Python 2.1 now.D'Arcy J.M. Cain2001-11-04
|
* The "%d", while syntactically correct, was confusing. Added a space toD'Arcy J.M. Cain2001-11-04
| | | | make it clearer that d was the argument to the format operator.
* 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.