]> granicus.if.org Git - postgresql/commit
pgdb.connect() seems to be broken on Python 2.0.1 (which ships with
authorBruce Momjian <bruce@momjian.us>
Wed, 24 Apr 2002 01:58:31 +0000 (01:58 +0000)
committerBruce Momjian <bruce@momjian.us>
Wed, 24 Apr 2002 01:58:31 +0000 (01:58 +0000)
commitbe9728acf1395ee45d82aa1e922570a82f9d040f
tree490fabd2889ca35b0750f6264def5cb8f70f3f84
parent2d81019493541d90f601ffb6f1f2cc9841b7aefe
pgdb.connect() seems to be broken on Python 2.0.1 (which ships with
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
src/interfaces/python/pgdb.py