Postgres COPY Command with python 2.3 pg
@(none)
"phile\" at (none)
Tue Feb 15 15:00:28 EST 2005
Michael Lang wrote:
> using psql it works fine, but i dont know how to get it working in python.
> Ive already made the calls but the changes never apper, and no error.
Which Postgres module are you using? I had the exct same problem when I
first started using pyPgSQL, until I figured out that I needed to do:
db = PgSQL.connect(DSN)
db.autocommit = 1
con = db.cursor()
In my code.
More information about the Python-list
mailing list