summaryrefslogtreecommitdiff
path: root/src/interfaces/python/pgdb.py
AgeCommit message (Collapse)Author
2003-08-01remove python module, as its moved to http://www.pygresql.orgMarc G. Fournier
2003-01-08Correction to last patch. As per the DB-API spec, we need to return NoneD'Arcy J.M. Cain
here, not -1.
2002-12-04Remove typprtlen from getdescr() as it is not available in 7.3. Return -1 forD'Arcy J.M. Cain
that field so that existing programs don't break.
2002-11-25I'm sending you a small patch to pgdb.py module. ThisD'Arcy J.M. Cain
raises pgdb.DatabaseError when any of the fetch* methods was invoked but previous call to execute* did not produce any result set or no call was issued yet. Also, raises pgdb.NotSupportedError when .nextset() is invoked, instead of NameError. This behaviour complies with DB-API 2.0. Thanks for your work! Timur Irmatov.
2002-11-23This patch implements FOR EACH STATEMENT triggers, per my email toBruce Momjian
-hackers a couple days ago. Notes/caveats: - added regression tests for the new functionality, all regression tests pass on my machine - added pg_dump support - updated PL/PgSQL to support per-statement triggers; didn't look at the other procedural languages. - there's (even) more code duplication in trigger.c than there was previously. Any suggestions on how to refactor the ExecXXXTriggers() functions to reuse more code would be welcome -- I took a brief look at it, but couldn't see an easy way to do it (there are several subtly-different versions of the code in question) - updated the documentation. I also took the liberty of removing a big chunk of duplicated syntax documentation in the Programmer's Guide on triggers, and moving that information to the CREATE TRIGGER reference page. - I also included some spelling fixes and similar small cleanups I noticed while making the changes. If you'd like me to split those into a separate patch, let me know. Neil Conway
2002-06-03Small patch to correct the default arraysize associatedBruce Momjian
with the Cursor object's fetchmany() method. The API and inline documentation state that the default is 1. It currently defaults to 5. Patrick Macdonald
2002-05-03Remove the last traces of datatypes datetime and timespan.Tom Lane
2002-04-24pgdb.connect() seems to be broken on Python 2.0.1 (which ships withBruce Momjian
Slackware 8), and perhaps on other Pythons, haven't checked. Something in the _pg.connect() call isn't working. I think the problem stems from the fact that 'host' is a named parameter of both _pg.connect and pgdb.connect, and so Python treats it as a variable assignment, not a named parameter. Uses non-named parameters. Andrew Johnson
2002-04-18Back out python change, needs delay.Bruce Momjian
2002-04-18Change docs to do 20! rather than larger.Bruce Momjian
2002-03-19> I am backing out this patch. Please resubmit with this corrected. Thanks.Bruce Momjian
> > 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
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-06-15Add bpchar to list of string types.D'Arcy J.M. Cain
Thanks to Steve McClure <[email protected]> for the patch.
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-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))
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-02Update for PyGreSQL 3.0, from D'Arcy J.M. CainBruce Momjian