View Single Post

   
  #2 (permalink)  
Old 04-10-2008, 11:15 AM
ITAGAKI Takahiro
 
Posts: n/a
Default Re: BUG #4087: table creation problem using python


"jitendra" <teri.jitendra@gmail.com> wrote:

> I'm jitendra from delhi(India),I've a problem with table creation using
> python....script executed but there's nothing happened.
> the program written in python is...


You need to add conn.commit() here:

> cur.execute("create table ph2 (nm varchar, ph varchar)")

conn.commit()
> print "table created....."



An auto-commit feature is initially off on databases supporting
transactions. See http://www.python.org/dev/peps/pep-0249/ .

Regards,
---
ITAGAKI Takahiro
NTT Open Source Software Center



--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs

Reply With Quote